YouTube Data API v3

AbuseReports

youtube.abuseReports.insert

Inserts a new resource into this collection.


/youtube/v3/abuseReports

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://youtube.googleapis.com//youtube/v3/abuseReports?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AbuseReportsApi;

import java.io.File;
import java.util.*;

public class AbuseReportsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        AbuseReportsApi apiInstance = new AbuseReportsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
        AbuseReport body = ; // AbuseReport | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            AbuseReport result = apiInstance.youtube.abuseReports.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AbuseReportsApi#youtube.abuseReports.insert");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AbuseReportsApi;

public class AbuseReportsApiExample {

    public static void main(String[] args) {
        AbuseReportsApi apiInstance = new AbuseReportsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
        AbuseReport body = ; // AbuseReport | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            AbuseReport result = apiInstance.youtube.abuseReports.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AbuseReportsApi#youtube.abuseReports.insert");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
AbuseReport *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

AbuseReportsApi *apiInstance = [[AbuseReportsApi alloc] init];

[apiInstance youtube.abuseReports.insertWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
              completionHandler: ^(AbuseReport output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.AbuseReportsApi()
var part = ; // {{array[String]}} The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
var opts = { 
  'body':  // {{AbuseReport}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.abuseReports.insert(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.abuseReports.insertExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new AbuseReportsApi();
            var part = new array[String](); // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
            var body = new AbuseReport(); // AbuseReport |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 

            try
            {
                AbuseReport result = apiInstance.youtube.abuseReports.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AbuseReportsApi.youtube.abuseReports.insert: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiAbuseReportsApi();
$part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
$body = ; // AbuseReport | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").

try {
    $result = $api_instance->youtube.abuseReports.insert($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AbuseReportsApi->youtube.abuseReports.insert: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AbuseReportsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::AbuseReportsApi->new();
my $part = []; # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
my $body = WWW::SwaggerClient::Object::AbuseReport->new(); # AbuseReport | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").

eval { 
    my $result = $api_instance->youtube.abuseReports.insert(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AbuseReportsApi->youtube.abuseReports.insert: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.AbuseReportsApi()
part =  # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
body =  # AbuseReport |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

try: 
    api_response = api_instance.youtube/abuse_reports/insert(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AbuseReportsApi->youtube.abuseReports.insert: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
Required

Responses

Status: 200 - Successful response


Activities

youtube.activities.list

Retrieves a list of resources, possibly filtered.


/youtube/v3/activities

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/activities?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&channelId=&home=&maxResults=&mine=&pageToken=&publishedAfter=&publishedBefore=®ionCode="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ActivitiesApi;

import java.io.File;
import java.util.*;

public class ActivitiesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        ActivitiesApi apiInstance = new ActivitiesApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more activity resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in an activity resource, the snippet property contains other properties that identify the type of activity, a display title for the activity, and so forth. If you set *part=snippet*, the API response will also contain all of those nested properties.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String channelId = channelId_example; // String | 
        Boolean home = true; // Boolean | 
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        Boolean mine = true; // Boolean | 
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        String publishedAfter = publishedAfter_example; // String | 
        String publishedBefore = publishedBefore_example; // String | 
        String regionCode = regionCode_example; // String | 
        try {
            ActivityListResponse result = apiInstance.youtube.activities.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, channelId, home, maxResults, mine, pageToken, publishedAfter, publishedBefore, regionCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ActivitiesApi#youtube.activities.list");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ActivitiesApi;

public class ActivitiesApiExample {

    public static void main(String[] args) {
        ActivitiesApi apiInstance = new ActivitiesApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more activity resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in an activity resource, the snippet property contains other properties that identify the type of activity, a display title for the activity, and so forth. If you set *part=snippet*, the API response will also contain all of those nested properties.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String channelId = channelId_example; // String | 
        Boolean home = true; // Boolean | 
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        Boolean mine = true; // Boolean | 
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        String publishedAfter = publishedAfter_example; // String | 
        String publishedBefore = publishedBefore_example; // String | 
        String regionCode = regionCode_example; // String | 
        try {
            ActivityListResponse result = apiInstance.youtube.activities.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, channelId, home, maxResults, mine, pageToken, publishedAfter, publishedBefore, regionCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ActivitiesApi#youtube.activities.list");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter specifies a comma-separated list of one or more activity resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in an activity resource, the snippet property contains other properties that identify the type of activity, a display title for the activity, and so forth. If you set *part=snippet*, the API response will also contain all of those nested properties.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *channelId = channelId_example; //  (optional)
Boolean *home = true; //  (optional)
Integer *maxResults = 56; // The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
Boolean *mine = true; //  (optional)
String *pageToken = pageToken_example; // The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)
String *publishedAfter = publishedAfter_example; //  (optional)
String *publishedBefore = publishedBefore_example; //  (optional)
String *regionCode = regionCode_example; //  (optional)

ActivitiesApi *apiInstance = [[ActivitiesApi alloc] init];

[apiInstance youtube.activities.listWith:part
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    channelId:channelId
    home:home
    maxResults:maxResults
    mine:mine
    pageToken:pageToken
    publishedAfter:publishedAfter
    publishedBefore:publishedBefore
    regionCode:regionCode
              completionHandler: ^(ActivityListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.ActivitiesApi()
var part = ; // {{array[String]}} The *part* parameter specifies a comma-separated list of one or more activity resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in an activity resource, the snippet property contains other properties that identify the type of activity, a display title for the activity, and so forth. If you set *part=snippet*, the API response will also contain all of those nested properties.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'channelId': channelId_example, // {{String}} 
  'home': true, // {{Boolean}} 
  'maxResults': 56, // {{Integer}} The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
  'mine': true, // {{Boolean}} 
  'pageToken': pageToken_example, // {{String}} The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
  'publishedAfter': publishedAfter_example, // {{String}} 
  'publishedBefore': publishedBefore_example, // {{String}} 
  'regionCode': regionCode_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.activities.list(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.activities.listExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ActivitiesApi();
            var part = new array[String](); // array[String] | The *part* parameter specifies a comma-separated list of one or more activity resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in an activity resource, the snippet property contains other properties that identify the type of activity, a display title for the activity, and so forth. If you set *part=snippet*, the API response will also contain all of those nested properties.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var channelId = channelId_example;  // String |  (optional) 
            var home = true;  // Boolean |  (optional) 
            var maxResults = 56;  // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional) 
            var mine = true;  // Boolean |  (optional) 
            var pageToken = pageToken_example;  // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional) 
            var publishedAfter = publishedAfter_example;  // String |  (optional) 
            var publishedBefore = publishedBefore_example;  // String |  (optional) 
            var regionCode = regionCode_example;  // String |  (optional) 

            try
            {
                ActivityListResponse result = apiInstance.youtube.activities.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, channelId, home, maxResults, mine, pageToken, publishedAfter, publishedBefore, regionCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ActivitiesApi.youtube.activities.list: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiActivitiesApi();
$part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more activity resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in an activity resource, the snippet property contains other properties that identify the type of activity, a display title for the activity, and so forth. If you set *part=snippet*, the API response will also contain all of those nested properties.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$channelId = channelId_example; // String | 
$home = true; // Boolean | 
$maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
$mine = true; // Boolean | 
$pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
$publishedAfter = publishedAfter_example; // String | 
$publishedBefore = publishedBefore_example; // String | 
$regionCode = regionCode_example; // String | 

try {
    $result = $api_instance->youtube.activities.list($part, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $channelId, $home, $maxResults, $mine, $pageToken, $publishedAfter, $publishedBefore, $regionCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ActivitiesApi->youtube.activities.list: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ActivitiesApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ActivitiesApi->new();
my $part = []; # array[String] | The *part* parameter specifies a comma-separated list of one or more activity resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in an activity resource, the snippet property contains other properties that identify the type of activity, a display title for the activity, and so forth. If you set *part=snippet*, the API response will also contain all of those nested properties.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $channelId = channelId_example; # String | 
my $home = true; # Boolean | 
my $maxResults = 56; # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
my $mine = true; # Boolean | 
my $pageToken = pageToken_example; # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
my $publishedAfter = publishedAfter_example; # String | 
my $publishedBefore = publishedBefore_example; # String | 
my $regionCode = regionCode_example; # String | 

eval { 
    my $result = $api_instance->youtube.activities.list(part => $part, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, channelId => $channelId, home => $home, maxResults => $maxResults, mine => $mine, pageToken => $pageToken, publishedAfter => $publishedAfter, publishedBefore => $publishedBefore, regionCode => $regionCode);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ActivitiesApi->youtube.activities.list: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ActivitiesApi()
part =  # array[String] | The *part* parameter specifies a comma-separated list of one or more activity resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in an activity resource, the snippet property contains other properties that identify the type of activity, a display title for the activity, and so forth. If you set *part=snippet*, the API response will also contain all of those nested properties.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
channelId = channelId_example # String |  (optional)
home = true # Boolean |  (optional)
maxResults = 56 # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
mine = true # Boolean |  (optional)
pageToken = pageToken_example # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)
publishedAfter = publishedAfter_example # String |  (optional)
publishedBefore = publishedBefore_example # String |  (optional)
regionCode = regionCode_example # String |  (optional)

try: 
    api_response = api_instance.youtube/activities/list(part, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, channelId=channelId, home=home, maxResults=maxResults, mine=mine, pageToken=pageToken, publishedAfter=publishedAfter, publishedBefore=publishedBefore, regionCode=regionCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivitiesApi->youtube.activities.list: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter specifies a comma-separated list of one or more activity resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in an activity resource, the snippet property contains other properties that identify the type of activity, a display title for the activity, and so forth. If you set *part=snippet*, the API response will also contain all of those nested properties.
Required
channelId
String
home
Boolean
maxResults
Integer
The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
mine
Boolean
pageToken
String
The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
publishedAfter
String
publishedBefore
String
regionCode
String

Responses

Status: 200 - Successful response


Captions

youtube.captions.delete

Deletes a resource.


/youtube/v3/captions

Usage and SDK Samples

curl -X DELETE\
\
\
"https://youtube.googleapis.com//youtube/v3/captions?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&id=&onBehalfOf=&onBehalfOfContentOwner="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CaptionsApi;

import java.io.File;
import java.util.*;

public class CaptionsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        CaptionsApi apiInstance = new CaptionsApi();
        String id = id_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOf = onBehalfOf_example; // String | ID of the Google+ Page for the channel that the request is be on behalf of
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            apiInstance.youtube.captions.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOf, onBehalfOfContentOwner);
        } catch (ApiException e) {
            System.err.println("Exception when calling CaptionsApi#youtube.captions.delete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CaptionsApi;

public class CaptionsApiExample {

    public static void main(String[] args) {
        CaptionsApi apiInstance = new CaptionsApi();
        String id = id_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOf = onBehalfOf_example; // String | ID of the Google+ Page for the channel that the request is be on behalf of
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            apiInstance.youtube.captions.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOf, onBehalfOfContentOwner);
        } catch (ApiException e) {
            System.err.println("Exception when calling CaptionsApi#youtube.captions.delete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *id = id_example; // 
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOf = onBehalfOf_example; // ID of the Google+ Page for the channel that the request is be on behalf of (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

CaptionsApi *apiInstance = [[CaptionsApi alloc] init];

[apiInstance youtube.captions.deleteWith:id
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOf:onBehalfOf
    onBehalfOfContentOwner:onBehalfOfContentOwner
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.CaptionsApi()
var id = id_example; // {{String}} 
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOf': onBehalfOf_example, // {{String}} ID of the Google+ Page for the channel that the request is be on behalf of
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.youtube.captions.delete(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.captions.deleteExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CaptionsApi();
            var id = id_example;  // String | 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOf = onBehalfOf_example;  // String | ID of the Google+ Page for the channel that the request is be on behalf of (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 

            try
            {
                apiInstance.youtube.captions.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOf, onBehalfOfContentOwner);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CaptionsApi.youtube.captions.delete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCaptionsApi();
$id = id_example; // String | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOf = onBehalfOf_example; // String | ID of the Google+ Page for the channel that the request is be on behalf of
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.

try {
    $api_instance->youtube.captions.delete($id, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOf, $onBehalfOfContentOwner);
} catch (Exception $e) {
    echo 'Exception when calling CaptionsApi->youtube.captions.delete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CaptionsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CaptionsApi->new();
my $id = id_example; # String | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOf = onBehalfOf_example; # String | ID of the Google+ Page for the channel that the request is be on behalf of
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.

eval { 
    $api_instance->youtube.captions.delete(id => $id, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOf => $onBehalfOf, onBehalfOfContentOwner => $onBehalfOfContentOwner);
};
if ($@) {
    warn "Exception when calling CaptionsApi->youtube.captions.delete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CaptionsApi()
id = id_example # String | 
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOf = onBehalfOf_example # String | ID of the Google+ Page for the channel that the request is be on behalf of (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

try: 
    api_instance.youtube/captions/delete(id, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOf=onBehalfOf, onBehalfOfContentOwner=onBehalfOfContentOwner)
except ApiException as e:
    print("Exception when calling CaptionsApi->youtube.captions.delete: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
id*
String
Required
onBehalfOf
String
ID of the Google+ Page for the channel that the request is be on behalf of
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.

Responses

Status: 200 - Successful response


youtube.captions.download

Downloads a caption track.


/youtube/v3/captions/{id}

Usage and SDK Samples

curl -X GET\
\
\
"https://youtube.googleapis.com//youtube/v3/captions/{id}?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&onBehalfOf=&onBehalfOfContentOwner=&tfmt=&tlang="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CaptionsApi;

import java.io.File;
import java.util.*;

public class CaptionsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        CaptionsApi apiInstance = new CaptionsApi();
        String id = id_example; // String | The ID of the caption track to download, required for One Platform.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOf = onBehalfOf_example; // String | ID of the Google+ Page for the channel that the request is be on behalf of
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String tfmt = tfmt_example; // String | Convert the captions into this format. Supported options are sbv, srt, and vtt.
        String tlang = tlang_example; // String | tlang is the language code; machine translate the captions into this language.
        try {
            apiInstance.youtube.captions.download(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOf, onBehalfOfContentOwner, tfmt, tlang);
        } catch (ApiException e) {
            System.err.println("Exception when calling CaptionsApi#youtube.captions.download");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CaptionsApi;

public class CaptionsApiExample {

    public static void main(String[] args) {
        CaptionsApi apiInstance = new CaptionsApi();
        String id = id_example; // String | The ID of the caption track to download, required for One Platform.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOf = onBehalfOf_example; // String | ID of the Google+ Page for the channel that the request is be on behalf of
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String tfmt = tfmt_example; // String | Convert the captions into this format. Supported options are sbv, srt, and vtt.
        String tlang = tlang_example; // String | tlang is the language code; machine translate the captions into this language.
        try {
            apiInstance.youtube.captions.download(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOf, onBehalfOfContentOwner, tfmt, tlang);
        } catch (ApiException e) {
            System.err.println("Exception when calling CaptionsApi#youtube.captions.download");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *id = id_example; // The ID of the caption track to download, required for One Platform.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOf = onBehalfOf_example; // ID of the Google+ Page for the channel that the request is be on behalf of (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
String *tfmt = tfmt_example; // Convert the captions into this format. Supported options are sbv, srt, and vtt. (optional)
String *tlang = tlang_example; // tlang is the language code; machine translate the captions into this language. (optional)

CaptionsApi *apiInstance = [[CaptionsApi alloc] init];

[apiInstance youtube.captions.downloadWith:id
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOf:onBehalfOf
    onBehalfOfContentOwner:onBehalfOfContentOwner
    tfmt:tfmt
    tlang:tlang
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.CaptionsApi()
var id = id_example; // {{String}} The ID of the caption track to download, required for One Platform.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOf': onBehalfOf_example, // {{String}} ID of the Google+ Page for the channel that the request is be on behalf of
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example, // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
  'tfmt': tfmt_example, // {{String}} Convert the captions into this format. Supported options are sbv, srt, and vtt.
  'tlang': tlang_example // {{String}} tlang is the language code; machine translate the captions into this language.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.youtube.captions.download(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.captions.downloadExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CaptionsApi();
            var id = id_example;  // String | The ID of the caption track to download, required for One Platform.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOf = onBehalfOf_example;  // String | ID of the Google+ Page for the channel that the request is be on behalf of (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 
            var tfmt = tfmt_example;  // String | Convert the captions into this format. Supported options are sbv, srt, and vtt. (optional) 
            var tlang = tlang_example;  // String | tlang is the language code; machine translate the captions into this language. (optional) 

            try
            {
                apiInstance.youtube.captions.download(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOf, onBehalfOfContentOwner, tfmt, tlang);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CaptionsApi.youtube.captions.download: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCaptionsApi();
$id = id_example; // String | The ID of the caption track to download, required for One Platform.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOf = onBehalfOf_example; // String | ID of the Google+ Page for the channel that the request is be on behalf of
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
$tfmt = tfmt_example; // String | Convert the captions into this format. Supported options are sbv, srt, and vtt.
$tlang = tlang_example; // String | tlang is the language code; machine translate the captions into this language.

try {
    $api_instance->youtube.captions.download($id, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOf, $onBehalfOfContentOwner, $tfmt, $tlang);
} catch (Exception $e) {
    echo 'Exception when calling CaptionsApi->youtube.captions.download: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CaptionsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CaptionsApi->new();
my $id = id_example; # String | The ID of the caption track to download, required for One Platform.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOf = onBehalfOf_example; # String | ID of the Google+ Page for the channel that the request is be on behalf of
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
my $tfmt = tfmt_example; # String | Convert the captions into this format. Supported options are sbv, srt, and vtt.
my $tlang = tlang_example; # String | tlang is the language code; machine translate the captions into this language.

eval { 
    $api_instance->youtube.captions.download(id => $id, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOf => $onBehalfOf, onBehalfOfContentOwner => $onBehalfOfContentOwner, tfmt => $tfmt, tlang => $tlang);
};
if ($@) {
    warn "Exception when calling CaptionsApi->youtube.captions.download: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CaptionsApi()
id = id_example # String | The ID of the caption track to download, required for One Platform.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOf = onBehalfOf_example # String | ID of the Google+ Page for the channel that the request is be on behalf of (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
tfmt = tfmt_example # String | Convert the captions into this format. Supported options are sbv, srt, and vtt. (optional)
tlang = tlang_example # String | tlang is the language code; machine translate the captions into this language. (optional)

try: 
    api_instance.youtube/captions/download(id, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOf=onBehalfOf, onBehalfOfContentOwner=onBehalfOfContentOwner, tfmt=tfmt, tlang=tlang)
except ApiException as e:
    print("Exception when calling CaptionsApi->youtube.captions.download: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
The ID of the caption track to download, required for One Platform.
Required
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
onBehalfOf
String
ID of the Google+ Page for the channel that the request is be on behalf of
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
tfmt
String
Convert the captions into this format. Supported options are sbv, srt, and vtt.
tlang
String
tlang is the language code; machine translate the captions into this language.

Responses

Status: 200 - Successful response


youtube.captions.insert

Inserts a new resource into this collection.


/youtube/v3/captions

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/octet-stream,text/xml"\
"https://youtube.googleapis.com//youtube/v3/captions?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&onBehalfOf=&onBehalfOfContentOwner=&sync="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CaptionsApi;

import java.io.File;
import java.util.*;

public class CaptionsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        CaptionsApi apiInstance = new CaptionsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies the caption resource parts that the API response will include. Set the parameter value to snippet.
        Caption body = ; // Caption | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOf = onBehalfOf_example; // String | ID of the Google+ Page for the channel that the request is be on behalf of
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        Boolean sync = true; // Boolean | Extra parameter to allow automatically syncing the uploaded caption/transcript with the audio.
        try {
            Caption result = apiInstance.youtube.captions.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOf, onBehalfOfContentOwner, sync);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CaptionsApi#youtube.captions.insert");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CaptionsApi;

public class CaptionsApiExample {

    public static void main(String[] args) {
        CaptionsApi apiInstance = new CaptionsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies the caption resource parts that the API response will include. Set the parameter value to snippet.
        Caption body = ; // Caption | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOf = onBehalfOf_example; // String | ID of the Google+ Page for the channel that the request is be on behalf of
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        Boolean sync = true; // Boolean | Extra parameter to allow automatically syncing the uploaded caption/transcript with the audio.
        try {
            Caption result = apiInstance.youtube.captions.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOf, onBehalfOfContentOwner, sync);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CaptionsApi#youtube.captions.insert");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter specifies the caption resource parts that the API response will include. Set the parameter value to snippet.
Caption *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOf = onBehalfOf_example; // ID of the Google+ Page for the channel that the request is be on behalf of (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
Boolean *sync = true; // Extra parameter to allow automatically syncing the uploaded caption/transcript with the audio. (optional)

CaptionsApi *apiInstance = [[CaptionsApi alloc] init];

[apiInstance youtube.captions.insertWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOf:onBehalfOf
    onBehalfOfContentOwner:onBehalfOfContentOwner
    sync:sync
              completionHandler: ^(Caption output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.CaptionsApi()
var part = ; // {{array[String]}} The *part* parameter specifies the caption resource parts that the API response will include. Set the parameter value to snippet.
var opts = { 
  'body':  // {{Caption}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOf': onBehalfOf_example // {{String}} ID of the Google+ Page for the channel that the request is be on behalf of
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
  'sync': true // {{Boolean}} Extra parameter to allow automatically syncing the uploaded caption/transcript with the audio.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.captions.insert(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.captions.insertExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CaptionsApi();
            var part = new array[String](); // array[String] | The *part* parameter specifies the caption resource parts that the API response will include. Set the parameter value to snippet.
            var body = new Caption(); // Caption |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOf = onBehalfOf_example;  // String | ID of the Google+ Page for the channel that the request is be on behalf of (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 
            var sync = true;  // Boolean | Extra parameter to allow automatically syncing the uploaded caption/transcript with the audio. (optional) 

            try
            {
                Caption result = apiInstance.youtube.captions.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOf, onBehalfOfContentOwner, sync);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CaptionsApi.youtube.captions.insert: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCaptionsApi();
$part = ; // array[String] | The *part* parameter specifies the caption resource parts that the API response will include. Set the parameter value to snippet.
$body = ; // Caption | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOf = onBehalfOf_example; // String | ID of the Google+ Page for the channel that the request is be on behalf of
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
$sync = true; // Boolean | Extra parameter to allow automatically syncing the uploaded caption/transcript with the audio.

try {
    $result = $api_instance->youtube.captions.insert($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOf, $onBehalfOfContentOwner, $sync);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CaptionsApi->youtube.captions.insert: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CaptionsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CaptionsApi->new();
my $part = []; # array[String] | The *part* parameter specifies the caption resource parts that the API response will include. Set the parameter value to snippet.
my $body = WWW::SwaggerClient::Object::Caption->new(); # Caption | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOf = onBehalfOf_example; # String | ID of the Google+ Page for the channel that the request is be on behalf of
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
my $sync = true; # Boolean | Extra parameter to allow automatically syncing the uploaded caption/transcript with the audio.

eval { 
    my $result = $api_instance->youtube.captions.insert(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOf => $onBehalfOf, onBehalfOfContentOwner => $onBehalfOfContentOwner, sync => $sync);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CaptionsApi->youtube.captions.insert: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CaptionsApi()
part =  # array[String] | The *part* parameter specifies the caption resource parts that the API response will include. Set the parameter value to snippet.
body =  # Caption |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOf = onBehalfOf_example # String | ID of the Google+ Page for the channel that the request is be on behalf of (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
sync = true # Boolean | Extra parameter to allow automatically syncing the uploaded caption/transcript with the audio. (optional)

try: 
    api_response = api_instance.youtube/captions/insert(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOf=onBehalfOf, onBehalfOfContentOwner=onBehalfOfContentOwner, sync=sync)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CaptionsApi->youtube.captions.insert: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter specifies the caption resource parts that the API response will include. Set the parameter value to snippet.
Required
onBehalfOf
String
ID of the Google+ Page for the channel that the request is be on behalf of
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
sync
Boolean
Extra parameter to allow automatically syncing the uploaded caption/transcript with the audio.

Responses

Status: 200 - Successful response


youtube.captions.list

Retrieves a list of resources, possibly filtered.


/youtube/v3/captions

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/captions?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&videoId=&id=&onBehalfOf=&onBehalfOfContentOwner="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CaptionsApi;

import java.io.File;
import java.util.*;

public class CaptionsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        CaptionsApi apiInstance = new CaptionsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more caption resource parts that the API response will include. The part names that you can include in the parameter value are id and snippet.
        String videoId = videoId_example; // String | Returns the captions for the specified video.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        array[String] id = ; // array[String] | Returns the captions with the given IDs for Stubby or Apiary.
        String onBehalfOf = onBehalfOf_example; // String | ID of the Google+ Page for the channel that the request is on behalf of.
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            CaptionListResponse result = apiInstance.youtube.captions.list(part, videoId, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, id, onBehalfOf, onBehalfOfContentOwner);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CaptionsApi#youtube.captions.list");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CaptionsApi;

public class CaptionsApiExample {

    public static void main(String[] args) {
        CaptionsApi apiInstance = new CaptionsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more caption resource parts that the API response will include. The part names that you can include in the parameter value are id and snippet.
        String videoId = videoId_example; // String | Returns the captions for the specified video.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        array[String] id = ; // array[String] | Returns the captions with the given IDs for Stubby or Apiary.
        String onBehalfOf = onBehalfOf_example; // String | ID of the Google+ Page for the channel that the request is on behalf of.
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            CaptionListResponse result = apiInstance.youtube.captions.list(part, videoId, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, id, onBehalfOf, onBehalfOfContentOwner);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CaptionsApi#youtube.captions.list");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter specifies a comma-separated list of one or more caption resource parts that the API response will include. The part names that you can include in the parameter value are id and snippet.
String *videoId = videoId_example; // Returns the captions for the specified video.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
array[String] *id = ; // Returns the captions with the given IDs for Stubby or Apiary. (optional)
String *onBehalfOf = onBehalfOf_example; // ID of the Google+ Page for the channel that the request is on behalf of. (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

CaptionsApi *apiInstance = [[CaptionsApi alloc] init];

[apiInstance youtube.captions.listWith:part
    videoId:videoId
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    id:id
    onBehalfOf:onBehalfOf
    onBehalfOfContentOwner:onBehalfOfContentOwner
              completionHandler: ^(CaptionListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.CaptionsApi()
var part = ; // {{array[String]}} The *part* parameter specifies a comma-separated list of one or more caption resource parts that the API response will include. The part names that you can include in the parameter value are id and snippet.
var videoId = videoId_example; // {{String}} Returns the captions for the specified video.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'id': , // {{array[String]}} Returns the captions with the given IDs for Stubby or Apiary.
  'onBehalfOf': onBehalfOf_example, // {{String}} ID of the Google+ Page for the channel that the request is on behalf of.
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.captions.list(part, videoId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.captions.listExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CaptionsApi();
            var part = new array[String](); // array[String] | The *part* parameter specifies a comma-separated list of one or more caption resource parts that the API response will include. The part names that you can include in the parameter value are id and snippet.
            var videoId = videoId_example;  // String | Returns the captions for the specified video.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var id = new array[String](); // array[String] | Returns the captions with the given IDs for Stubby or Apiary. (optional) 
            var onBehalfOf = onBehalfOf_example;  // String | ID of the Google+ Page for the channel that the request is on behalf of. (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 

            try
            {
                CaptionListResponse result = apiInstance.youtube.captions.list(part, videoId, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, id, onBehalfOf, onBehalfOfContentOwner);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CaptionsApi.youtube.captions.list: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCaptionsApi();
$part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more caption resource parts that the API response will include. The part names that you can include in the parameter value are id and snippet.
$videoId = videoId_example; // String | Returns the captions for the specified video.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$id = ; // array[String] | Returns the captions with the given IDs for Stubby or Apiary.
$onBehalfOf = onBehalfOf_example; // String | ID of the Google+ Page for the channel that the request is on behalf of.
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.

try {
    $result = $api_instance->youtube.captions.list($part, $videoId, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $id, $onBehalfOf, $onBehalfOfContentOwner);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CaptionsApi->youtube.captions.list: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CaptionsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CaptionsApi->new();
my $part = []; # array[String] | The *part* parameter specifies a comma-separated list of one or more caption resource parts that the API response will include. The part names that you can include in the parameter value are id and snippet.
my $videoId = videoId_example; # String | Returns the captions for the specified video.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $id = []; # array[String] | Returns the captions with the given IDs for Stubby or Apiary.
my $onBehalfOf = onBehalfOf_example; # String | ID of the Google+ Page for the channel that the request is on behalf of.
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.

eval { 
    my $result = $api_instance->youtube.captions.list(part => $part, videoId => $videoId, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, id => $id, onBehalfOf => $onBehalfOf, onBehalfOfContentOwner => $onBehalfOfContentOwner);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CaptionsApi->youtube.captions.list: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CaptionsApi()
part =  # array[String] | The *part* parameter specifies a comma-separated list of one or more caption resource parts that the API response will include. The part names that you can include in the parameter value are id and snippet.
videoId = videoId_example # String | Returns the captions for the specified video.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
id =  # array[String] | Returns the captions with the given IDs for Stubby or Apiary. (optional)
onBehalfOf = onBehalfOf_example # String | ID of the Google+ Page for the channel that the request is on behalf of. (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

try: 
    api_response = api_instance.youtube/captions/list(part, videoId, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, id=id, onBehalfOf=onBehalfOf, onBehalfOfContentOwner=onBehalfOfContentOwner)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CaptionsApi->youtube.captions.list: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter specifies a comma-separated list of one or more caption resource parts that the API response will include. The part names that you can include in the parameter value are id and snippet.
Required
videoId*
String
Returns the captions for the specified video.
Required
id
array[String]
Returns the captions with the given IDs for Stubby or Apiary.
onBehalfOf
String
ID of the Google+ Page for the channel that the request is on behalf of.
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.

Responses

Status: 200 - Successful response


youtube.captions.update

Updates an existing resource.


/youtube/v3/captions

Usage and SDK Samples

curl -X PUT\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/octet-stream,text/xml"\
"https://youtube.googleapis.com//youtube/v3/captions?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&onBehalfOf=&onBehalfOfContentOwner=&sync="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CaptionsApi;

import java.io.File;
import java.util.*;

public class CaptionsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        CaptionsApi apiInstance = new CaptionsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more caption resource parts that the API response will include. The part names that you can include in the parameter value are id and snippet.
        Caption body = ; // Caption | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOf = onBehalfOf_example; // String | ID of the Google+ Page for the channel that the request is on behalf of.
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        Boolean sync = true; // Boolean | Extra parameter to allow automatically syncing the uploaded caption/transcript with the audio.
        try {
            Caption result = apiInstance.youtube.captions.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOf, onBehalfOfContentOwner, sync);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CaptionsApi#youtube.captions.update");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CaptionsApi;

public class CaptionsApiExample {

    public static void main(String[] args) {
        CaptionsApi apiInstance = new CaptionsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more caption resource parts that the API response will include. The part names that you can include in the parameter value are id and snippet.
        Caption body = ; // Caption | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOf = onBehalfOf_example; // String | ID of the Google+ Page for the channel that the request is on behalf of.
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        Boolean sync = true; // Boolean | Extra parameter to allow automatically syncing the uploaded caption/transcript with the audio.
        try {
            Caption result = apiInstance.youtube.captions.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOf, onBehalfOfContentOwner, sync);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CaptionsApi#youtube.captions.update");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter specifies a comma-separated list of one or more caption resource parts that the API response will include. The part names that you can include in the parameter value are id and snippet.
Caption *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOf = onBehalfOf_example; // ID of the Google+ Page for the channel that the request is on behalf of. (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
Boolean *sync = true; // Extra parameter to allow automatically syncing the uploaded caption/transcript with the audio. (optional)

CaptionsApi *apiInstance = [[CaptionsApi alloc] init];

[apiInstance youtube.captions.updateWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOf:onBehalfOf
    onBehalfOfContentOwner:onBehalfOfContentOwner
    sync:sync
              completionHandler: ^(Caption output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.CaptionsApi()
var part = ; // {{array[String]}} The *part* parameter specifies a comma-separated list of one or more caption resource parts that the API response will include. The part names that you can include in the parameter value are id and snippet.
var opts = { 
  'body':  // {{Caption}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOf': onBehalfOf_example // {{String}} ID of the Google+ Page for the channel that the request is on behalf of.
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
  'sync': true // {{Boolean}} Extra parameter to allow automatically syncing the uploaded caption/transcript with the audio.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.captions.update(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.captions.updateExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CaptionsApi();
            var part = new array[String](); // array[String] | The *part* parameter specifies a comma-separated list of one or more caption resource parts that the API response will include. The part names that you can include in the parameter value are id and snippet.
            var body = new Caption(); // Caption |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOf = onBehalfOf_example;  // String | ID of the Google+ Page for the channel that the request is on behalf of. (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 
            var sync = true;  // Boolean | Extra parameter to allow automatically syncing the uploaded caption/transcript with the audio. (optional) 

            try
            {
                Caption result = apiInstance.youtube.captions.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOf, onBehalfOfContentOwner, sync);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CaptionsApi.youtube.captions.update: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCaptionsApi();
$part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more caption resource parts that the API response will include. The part names that you can include in the parameter value are id and snippet.
$body = ; // Caption | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOf = onBehalfOf_example; // String | ID of the Google+ Page for the channel that the request is on behalf of.
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
$sync = true; // Boolean | Extra parameter to allow automatically syncing the uploaded caption/transcript with the audio.

try {
    $result = $api_instance->youtube.captions.update($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOf, $onBehalfOfContentOwner, $sync);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CaptionsApi->youtube.captions.update: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CaptionsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CaptionsApi->new();
my $part = []; # array[String] | The *part* parameter specifies a comma-separated list of one or more caption resource parts that the API response will include. The part names that you can include in the parameter value are id and snippet.
my $body = WWW::SwaggerClient::Object::Caption->new(); # Caption | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOf = onBehalfOf_example; # String | ID of the Google+ Page for the channel that the request is on behalf of.
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
my $sync = true; # Boolean | Extra parameter to allow automatically syncing the uploaded caption/transcript with the audio.

eval { 
    my $result = $api_instance->youtube.captions.update(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOf => $onBehalfOf, onBehalfOfContentOwner => $onBehalfOfContentOwner, sync => $sync);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CaptionsApi->youtube.captions.update: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CaptionsApi()
part =  # array[String] | The *part* parameter specifies a comma-separated list of one or more caption resource parts that the API response will include. The part names that you can include in the parameter value are id and snippet.
body =  # Caption |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOf = onBehalfOf_example # String | ID of the Google+ Page for the channel that the request is on behalf of. (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
sync = true # Boolean | Extra parameter to allow automatically syncing the uploaded caption/transcript with the audio. (optional)

try: 
    api_response = api_instance.youtube/captions/update(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOf=onBehalfOf, onBehalfOfContentOwner=onBehalfOfContentOwner, sync=sync)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CaptionsApi->youtube.captions.update: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter specifies a comma-separated list of one or more caption resource parts that the API response will include. The part names that you can include in the parameter value are id and snippet.
Required
onBehalfOf
String
ID of the Google+ Page for the channel that the request is on behalf of.
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
sync
Boolean
Extra parameter to allow automatically syncing the uploaded caption/transcript with the audio.

Responses

Status: 200 - Successful response


ChannelBanners

youtube.channelBanners.insert

Inserts a new resource into this collection.


/youtube/v3/channelBanners/insert

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/octet-stream,image/jpeg,image/png"\
"https://youtube.googleapis.com//youtube/v3/channelBanners/insert?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&channelId=&onBehalfOfContentOwner=&onBehalfOfContentOwnerChannel="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelBannersApi;

import java.io.File;
import java.util.*;

public class ChannelBannersApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        ChannelBannersApi apiInstance = new ChannelBannersApi();
        ChannelBannerResource body = ; // ChannelBannerResource | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String channelId = channelId_example; // String | Unused, channel_id is currently derived from the security context of the requestor.
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        try {
            ChannelBannerResource result = apiInstance.youtube.channelBanners.insert(body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, channelId, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelBannersApi#youtube.channelBanners.insert");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelBannersApi;

public class ChannelBannersApiExample {

    public static void main(String[] args) {
        ChannelBannersApi apiInstance = new ChannelBannersApi();
        ChannelBannerResource body = ; // ChannelBannerResource | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String channelId = channelId_example; // String | Unused, channel_id is currently derived from the security context of the requestor.
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        try {
            ChannelBannerResource result = apiInstance.youtube.channelBanners.insert(body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, channelId, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelBannersApi#youtube.channelBanners.insert");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
ChannelBannerResource *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *channelId = channelId_example; // Unused, channel_id is currently derived from the security context of the requestor. (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
String *onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)

ChannelBannersApi *apiInstance = [[ChannelBannersApi alloc] init];

[apiInstance youtube.channelBanners.insertWith:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    channelId:channelId
    onBehalfOfContentOwner:onBehalfOfContentOwner
    onBehalfOfContentOwnerChannel:onBehalfOfContentOwnerChannel
              completionHandler: ^(ChannelBannerResource output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.ChannelBannersApi()
var opts = { 
  'body':  // {{ChannelBannerResource}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'channelId': channelId_example // {{String}} Unused, channel_id is currently derived from the security context of the requestor.
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
  'onBehalfOfContentOwnerChannel': onBehalfOfContentOwnerChannel_example // {{String}} This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.channelBanners.insert(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.channelBanners.insertExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ChannelBannersApi();
            var body = new ChannelBannerResource(); // ChannelBannerResource |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var channelId = channelId_example;  // String | Unused, channel_id is currently derived from the security context of the requestor. (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 
            var onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example;  // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional) 

            try
            {
                ChannelBannerResource result = apiInstance.youtube.channelBanners.insert(body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, channelId, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelBannersApi.youtube.channelBanners.insert: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiChannelBannersApi();
$body = ; // ChannelBannerResource | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$channelId = channelId_example; // String | Unused, channel_id is currently derived from the security context of the requestor.
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
$onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

try {
    $result = $api_instance->youtube.channelBanners.insert($body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $channelId, $onBehalfOfContentOwner, $onBehalfOfContentOwnerChannel);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChannelBannersApi->youtube.channelBanners.insert: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChannelBannersApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ChannelBannersApi->new();
my $body = WWW::SwaggerClient::Object::ChannelBannerResource->new(); # ChannelBannerResource | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $channelId = channelId_example; # String | Unused, channel_id is currently derived from the security context of the requestor.
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
my $onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

eval { 
    my $result = $api_instance->youtube.channelBanners.insert(body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, channelId => $channelId, onBehalfOfContentOwner => $onBehalfOfContentOwner, onBehalfOfContentOwnerChannel => $onBehalfOfContentOwnerChannel);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChannelBannersApi->youtube.channelBanners.insert: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ChannelBannersApi()
body =  # ChannelBannerResource |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
channelId = channelId_example # String | Unused, channel_id is currently derived from the security context of the requestor. (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)

try: 
    api_response = api_instance.youtube/channel_banners/insert(body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, channelId=channelId, onBehalfOfContentOwner=onBehalfOfContentOwner, onBehalfOfContentOwnerChannel=onBehalfOfContentOwnerChannel)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChannelBannersApi->youtube.channelBanners.insert: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
channelId
String
Unused, channel_id is currently derived from the security context of the requestor.
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
onBehalfOfContentOwnerChannel
String
This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

Responses

Status: 200 - Successful response


ChannelSections

youtube.channelSections.delete

Deletes a resource.


/youtube/v3/channelSections

Usage and SDK Samples

curl -X DELETE\
\
\
"https://youtube.googleapis.com//youtube/v3/channelSections?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&id=&onBehalfOfContentOwner="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelSectionsApi;

import java.io.File;
import java.util.*;

public class ChannelSectionsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        ChannelSectionsApi apiInstance = new ChannelSectionsApi();
        String id = id_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            apiInstance.youtube.channelSections.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelSectionsApi#youtube.channelSections.delete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelSectionsApi;

public class ChannelSectionsApiExample {

    public static void main(String[] args) {
        ChannelSectionsApi apiInstance = new ChannelSectionsApi();
        String id = id_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            apiInstance.youtube.channelSections.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelSectionsApi#youtube.channelSections.delete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *id = id_example; // 
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

ChannelSectionsApi *apiInstance = [[ChannelSectionsApi alloc] init];

[apiInstance youtube.channelSections.deleteWith:id
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.ChannelSectionsApi()
var id = id_example; // {{String}} 
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.youtube.channelSections.delete(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.channelSections.deleteExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ChannelSectionsApi();
            var id = id_example;  // String | 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 

            try
            {
                apiInstance.youtube.channelSections.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelSectionsApi.youtube.channelSections.delete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiChannelSectionsApi();
$id = id_example; // String | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

try {
    $api_instance->youtube.channelSections.delete($id, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner);
} catch (Exception $e) {
    echo 'Exception when calling ChannelSectionsApi->youtube.channelSections.delete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChannelSectionsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ChannelSectionsApi->new();
my $id = id_example; # String | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

eval { 
    $api_instance->youtube.channelSections.delete(id => $id, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner);
};
if ($@) {
    warn "Exception when calling ChannelSectionsApi->youtube.channelSections.delete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ChannelSectionsApi()
id = id_example # String | 
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

try: 
    api_instance.youtube/channel_sections/delete(id, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner)
except ApiException as e:
    print("Exception when calling ChannelSectionsApi->youtube.channelSections.delete: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
id*
String
Required
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

Responses

Status: 200 - Successful response


youtube.channelSections.insert

Inserts a new resource into this collection.


/youtube/v3/channelSections

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://youtube.googleapis.com//youtube/v3/channelSections?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&onBehalfOfContentOwner=&onBehalfOfContentOwnerChannel="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelSectionsApi;

import java.io.File;
import java.util.*;

public class ChannelSectionsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        ChannelSectionsApi apiInstance = new ChannelSectionsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part names that you can include in the parameter value are snippet and contentDetails.
        ChannelSection body = ; // ChannelSection | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        try {
            ChannelSection result = apiInstance.youtube.channelSections.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelSectionsApi#youtube.channelSections.insert");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelSectionsApi;

public class ChannelSectionsApiExample {

    public static void main(String[] args) {
        ChannelSectionsApi apiInstance = new ChannelSectionsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part names that you can include in the parameter value are snippet and contentDetails.
        ChannelSection body = ; // ChannelSection | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        try {
            ChannelSection result = apiInstance.youtube.channelSections.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelSectionsApi#youtube.channelSections.insert");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part names that you can include in the parameter value are snippet and contentDetails.
ChannelSection *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
String *onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)

ChannelSectionsApi *apiInstance = [[ChannelSectionsApi alloc] init];

[apiInstance youtube.channelSections.insertWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
    onBehalfOfContentOwnerChannel:onBehalfOfContentOwnerChannel
              completionHandler: ^(ChannelSection output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.ChannelSectionsApi()
var part = ; // {{array[String]}} The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part names that you can include in the parameter value are snippet and contentDetails.
var opts = { 
  'body':  // {{ChannelSection}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
  'onBehalfOfContentOwnerChannel': onBehalfOfContentOwnerChannel_example // {{String}} This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.channelSections.insert(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.channelSections.insertExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ChannelSectionsApi();
            var part = new array[String](); // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part names that you can include in the parameter value are snippet and contentDetails.
            var body = new ChannelSection(); // ChannelSection |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 
            var onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example;  // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional) 

            try
            {
                ChannelSection result = apiInstance.youtube.channelSections.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelSectionsApi.youtube.channelSections.insert: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiChannelSectionsApi();
$part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part names that you can include in the parameter value are snippet and contentDetails.
$body = ; // ChannelSection | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
$onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

try {
    $result = $api_instance->youtube.channelSections.insert($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner, $onBehalfOfContentOwnerChannel);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChannelSectionsApi->youtube.channelSections.insert: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChannelSectionsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ChannelSectionsApi->new();
my $part = []; # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part names that you can include in the parameter value are snippet and contentDetails.
my $body = WWW::SwaggerClient::Object::ChannelSection->new(); # ChannelSection | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
my $onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

eval { 
    my $result = $api_instance->youtube.channelSections.insert(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner, onBehalfOfContentOwnerChannel => $onBehalfOfContentOwnerChannel);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChannelSectionsApi->youtube.channelSections.insert: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ChannelSectionsApi()
part =  # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part names that you can include in the parameter value are snippet and contentDetails.
body =  # ChannelSection |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)

try: 
    api_response = api_instance.youtube/channel_sections/insert(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner, onBehalfOfContentOwnerChannel=onBehalfOfContentOwnerChannel)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChannelSectionsApi->youtube.channelSections.insert: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part names that you can include in the parameter value are snippet and contentDetails.
Required
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
onBehalfOfContentOwnerChannel
String
This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

Responses

Status: 200 - Successful response


youtube.channelSections.list

Retrieves a list of resources, possibly filtered.


/youtube/v3/channelSections

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/channelSections?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&channelId=&hl=&id=&mine=&onBehalfOfContentOwner="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelSectionsApi;

import java.io.File;
import java.util.*;

public class ChannelSectionsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        ChannelSectionsApi apiInstance = new ChannelSectionsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more channelSection resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channelSection resource, the snippet property contains other properties, such as a display title for the channelSection. If you set *part=snippet*, the API response will also contain all of those nested properties.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String channelId = channelId_example; // String | Return the ChannelSections owned by the specified channel ID.
        String hl = hl_example; // String | Return content in specified language
        array[String] id = ; // array[String] | Return the ChannelSections with the given IDs for Stubby or Apiary.
        Boolean mine = true; // Boolean | Return the ChannelSections owned by the authenticated user.
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            ChannelSectionListResponse result = apiInstance.youtube.channelSections.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, channelId, hl, id, mine, onBehalfOfContentOwner);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelSectionsApi#youtube.channelSections.list");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelSectionsApi;

public class ChannelSectionsApiExample {

    public static void main(String[] args) {
        ChannelSectionsApi apiInstance = new ChannelSectionsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more channelSection resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channelSection resource, the snippet property contains other properties, such as a display title for the channelSection. If you set *part=snippet*, the API response will also contain all of those nested properties.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String channelId = channelId_example; // String | Return the ChannelSections owned by the specified channel ID.
        String hl = hl_example; // String | Return content in specified language
        array[String] id = ; // array[String] | Return the ChannelSections with the given IDs for Stubby or Apiary.
        Boolean mine = true; // Boolean | Return the ChannelSections owned by the authenticated user.
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            ChannelSectionListResponse result = apiInstance.youtube.channelSections.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, channelId, hl, id, mine, onBehalfOfContentOwner);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelSectionsApi#youtube.channelSections.list");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter specifies a comma-separated list of one or more channelSection resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channelSection resource, the snippet property contains other properties, such as a display title for the channelSection. If you set *part=snippet*, the API response will also contain all of those nested properties.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *channelId = channelId_example; // Return the ChannelSections owned by the specified channel ID. (optional)
String *hl = hl_example; // Return content in specified language (optional)
array[String] *id = ; // Return the ChannelSections with the given IDs for Stubby or Apiary. (optional)
Boolean *mine = true; // Return the ChannelSections owned by the authenticated user. (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

ChannelSectionsApi *apiInstance = [[ChannelSectionsApi alloc] init];

[apiInstance youtube.channelSections.listWith:part
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    channelId:channelId
    hl:hl
    id:id
    mine:mine
    onBehalfOfContentOwner:onBehalfOfContentOwner
              completionHandler: ^(ChannelSectionListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.ChannelSectionsApi()
var part = ; // {{array[String]}} The *part* parameter specifies a comma-separated list of one or more channelSection resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channelSection resource, the snippet property contains other properties, such as a display title for the channelSection. If you set *part=snippet*, the API response will also contain all of those nested properties.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'channelId': channelId_example, // {{String}} Return the ChannelSections owned by the specified channel ID.
  'hl': hl_example, // {{String}} Return content in specified language
  'id': , // {{array[String]}} Return the ChannelSections with the given IDs for Stubby or Apiary.
  'mine': true, // {{Boolean}} Return the ChannelSections owned by the authenticated user.
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.channelSections.list(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.channelSections.listExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ChannelSectionsApi();
            var part = new array[String](); // array[String] | The *part* parameter specifies a comma-separated list of one or more channelSection resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channelSection resource, the snippet property contains other properties, such as a display title for the channelSection. If you set *part=snippet*, the API response will also contain all of those nested properties.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var channelId = channelId_example;  // String | Return the ChannelSections owned by the specified channel ID. (optional) 
            var hl = hl_example;  // String | Return content in specified language (optional) 
            var id = new array[String](); // array[String] | Return the ChannelSections with the given IDs for Stubby or Apiary. (optional) 
            var mine = true;  // Boolean | Return the ChannelSections owned by the authenticated user. (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 

            try
            {
                ChannelSectionListResponse result = apiInstance.youtube.channelSections.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, channelId, hl, id, mine, onBehalfOfContentOwner);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelSectionsApi.youtube.channelSections.list: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiChannelSectionsApi();
$part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more channelSection resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channelSection resource, the snippet property contains other properties, such as a display title for the channelSection. If you set *part=snippet*, the API response will also contain all of those nested properties.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$channelId = channelId_example; // String | Return the ChannelSections owned by the specified channel ID.
$hl = hl_example; // String | Return content in specified language
$id = ; // array[String] | Return the ChannelSections with the given IDs for Stubby or Apiary.
$mine = true; // Boolean | Return the ChannelSections owned by the authenticated user.
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

try {
    $result = $api_instance->youtube.channelSections.list($part, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $channelId, $hl, $id, $mine, $onBehalfOfContentOwner);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChannelSectionsApi->youtube.channelSections.list: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChannelSectionsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ChannelSectionsApi->new();
my $part = []; # array[String] | The *part* parameter specifies a comma-separated list of one or more channelSection resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channelSection resource, the snippet property contains other properties, such as a display title for the channelSection. If you set *part=snippet*, the API response will also contain all of those nested properties.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $channelId = channelId_example; # String | Return the ChannelSections owned by the specified channel ID.
my $hl = hl_example; # String | Return content in specified language
my $id = []; # array[String] | Return the ChannelSections with the given IDs for Stubby or Apiary.
my $mine = true; # Boolean | Return the ChannelSections owned by the authenticated user.
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

eval { 
    my $result = $api_instance->youtube.channelSections.list(part => $part, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, channelId => $channelId, hl => $hl, id => $id, mine => $mine, onBehalfOfContentOwner => $onBehalfOfContentOwner);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChannelSectionsApi->youtube.channelSections.list: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ChannelSectionsApi()
part =  # array[String] | The *part* parameter specifies a comma-separated list of one or more channelSection resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channelSection resource, the snippet property contains other properties, such as a display title for the channelSection. If you set *part=snippet*, the API response will also contain all of those nested properties.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
channelId = channelId_example # String | Return the ChannelSections owned by the specified channel ID. (optional)
hl = hl_example # String | Return content in specified language (optional)
id =  # array[String] | Return the ChannelSections with the given IDs for Stubby or Apiary. (optional)
mine = true # Boolean | Return the ChannelSections owned by the authenticated user. (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

try: 
    api_response = api_instance.youtube/channel_sections/list(part, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, channelId=channelId, hl=hl, id=id, mine=mine, onBehalfOfContentOwner=onBehalfOfContentOwner)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChannelSectionsApi->youtube.channelSections.list: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter specifies a comma-separated list of one or more channelSection resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channelSection resource, the snippet property contains other properties, such as a display title for the channelSection. If you set *part=snippet*, the API response will also contain all of those nested properties.
Required
channelId
String
Return the ChannelSections owned by the specified channel ID.
hl
String
Return content in specified language
id
array[String]
Return the ChannelSections with the given IDs for Stubby or Apiary.
mine
Boolean
Return the ChannelSections owned by the authenticated user.
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

Responses

Status: 200 - Successful response


youtube.channelSections.update

Updates an existing resource.


/youtube/v3/channelSections

Usage and SDK Samples

curl -X PUT\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://youtube.googleapis.com//youtube/v3/channelSections?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&onBehalfOfContentOwner="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelSectionsApi;

import java.io.File;
import java.util.*;

public class ChannelSectionsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        ChannelSectionsApi apiInstance = new ChannelSectionsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part names that you can include in the parameter value are snippet and contentDetails.
        ChannelSection body = ; // ChannelSection | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            ChannelSection result = apiInstance.youtube.channelSections.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelSectionsApi#youtube.channelSections.update");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelSectionsApi;

public class ChannelSectionsApiExample {

    public static void main(String[] args) {
        ChannelSectionsApi apiInstance = new ChannelSectionsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part names that you can include in the parameter value are snippet and contentDetails.
        ChannelSection body = ; // ChannelSection | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            ChannelSection result = apiInstance.youtube.channelSections.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelSectionsApi#youtube.channelSections.update");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part names that you can include in the parameter value are snippet and contentDetails.
ChannelSection *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

ChannelSectionsApi *apiInstance = [[ChannelSectionsApi alloc] init];

[apiInstance youtube.channelSections.updateWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
              completionHandler: ^(ChannelSection output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.ChannelSectionsApi()
var part = ; // {{array[String]}} The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part names that you can include in the parameter value are snippet and contentDetails.
var opts = { 
  'body':  // {{ChannelSection}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.channelSections.update(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.channelSections.updateExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ChannelSectionsApi();
            var part = new array[String](); // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part names that you can include in the parameter value are snippet and contentDetails.
            var body = new ChannelSection(); // ChannelSection |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 

            try
            {
                ChannelSection result = apiInstance.youtube.channelSections.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelSectionsApi.youtube.channelSections.update: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiChannelSectionsApi();
$part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part names that you can include in the parameter value are snippet and contentDetails.
$body = ; // ChannelSection | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

try {
    $result = $api_instance->youtube.channelSections.update($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChannelSectionsApi->youtube.channelSections.update: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChannelSectionsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ChannelSectionsApi->new();
my $part = []; # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part names that you can include in the parameter value are snippet and contentDetails.
my $body = WWW::SwaggerClient::Object::ChannelSection->new(); # ChannelSection | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

eval { 
    my $result = $api_instance->youtube.channelSections.update(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChannelSectionsApi->youtube.channelSections.update: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ChannelSectionsApi()
part =  # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part names that you can include in the parameter value are snippet and contentDetails.
body =  # ChannelSection |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

try: 
    api_response = api_instance.youtube/channel_sections/update(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChannelSectionsApi->youtube.channelSections.update: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part names that you can include in the parameter value are snippet and contentDetails.
Required
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

Responses

Status: 200 - Successful response


Channels

youtube.channels.list

Retrieves a list of resources, possibly filtered.


/youtube/v3/channels

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/channels?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&categoryId=&forUsername=&hl=&id=&managedByMe=&maxResults=&mine=&mySubscribers=&onBehalfOfContentOwner=&pageToken="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelsApi;

import java.io.File;
import java.util.*;

public class ChannelsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        ChannelsApi apiInstance = new ChannelsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more channel resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channel resource, the contentDetails property contains other properties, such as the uploads properties. As such, if you set *part=contentDetails*, the API response will also contain all of those nested properties.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String categoryId = categoryId_example; // String | Return the channels within the specified guide category ID.
        String forUsername = forUsername_example; // String | Return the channel associated with a YouTube username.
        String hl = hl_example; // String | Stands for "host language". Specifies the localization language of the metadata to be filled into snippet.localized. The field is filled with the default metadata if there is no localization in the specified language. The parameter value must be a language code included in the list returned by the i18nLanguages.list method (e.g. en_US, es_MX).
        array[String] id = ; // array[String] | Return the channels with the specified IDs.
        Boolean managedByMe = true; // Boolean | Return the channels managed by the authenticated user.
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        Boolean mine = true; // Boolean | Return the ids of channels owned by the authenticated user.
        Boolean mySubscribers = true; // Boolean | Return the channels subscribed to the authenticated user
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        try {
            ChannelListResponse result = apiInstance.youtube.channels.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, categoryId, forUsername, hl, id, managedByMe, maxResults, mine, mySubscribers, onBehalfOfContentOwner, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsApi#youtube.channels.list");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelsApi;

public class ChannelsApiExample {

    public static void main(String[] args) {
        ChannelsApi apiInstance = new ChannelsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more channel resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channel resource, the contentDetails property contains other properties, such as the uploads properties. As such, if you set *part=contentDetails*, the API response will also contain all of those nested properties.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String categoryId = categoryId_example; // String | Return the channels within the specified guide category ID.
        String forUsername = forUsername_example; // String | Return the channel associated with a YouTube username.
        String hl = hl_example; // String | Stands for "host language". Specifies the localization language of the metadata to be filled into snippet.localized. The field is filled with the default metadata if there is no localization in the specified language. The parameter value must be a language code included in the list returned by the i18nLanguages.list method (e.g. en_US, es_MX).
        array[String] id = ; // array[String] | Return the channels with the specified IDs.
        Boolean managedByMe = true; // Boolean | Return the channels managed by the authenticated user.
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        Boolean mine = true; // Boolean | Return the ids of channels owned by the authenticated user.
        Boolean mySubscribers = true; // Boolean | Return the channels subscribed to the authenticated user
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        try {
            ChannelListResponse result = apiInstance.youtube.channels.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, categoryId, forUsername, hl, id, managedByMe, maxResults, mine, mySubscribers, onBehalfOfContentOwner, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsApi#youtube.channels.list");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter specifies a comma-separated list of one or more channel resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channel resource, the contentDetails property contains other properties, such as the uploads properties. As such, if you set *part=contentDetails*, the API response will also contain all of those nested properties.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *categoryId = categoryId_example; // Return the channels within the specified guide category ID. (optional)
String *forUsername = forUsername_example; // Return the channel associated with a YouTube username. (optional)
String *hl = hl_example; // Stands for "host language". Specifies the localization language of the metadata to be filled into snippet.localized. The field is filled with the default metadata if there is no localization in the specified language. The parameter value must be a language code included in the list returned by the i18nLanguages.list method (e.g. en_US, es_MX). (optional)
array[String] *id = ; // Return the channels with the specified IDs. (optional)
Boolean *managedByMe = true; // Return the channels managed by the authenticated user. (optional)
Integer *maxResults = 56; // The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
Boolean *mine = true; // Return the ids of channels owned by the authenticated user. (optional)
Boolean *mySubscribers = true; // Return the channels subscribed to the authenticated user (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
String *pageToken = pageToken_example; // The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)

ChannelsApi *apiInstance = [[ChannelsApi alloc] init];

[apiInstance youtube.channels.listWith:part
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    categoryId:categoryId
    forUsername:forUsername
    hl:hl
    id:id
    managedByMe:managedByMe
    maxResults:maxResults
    mine:mine
    mySubscribers:mySubscribers
    onBehalfOfContentOwner:onBehalfOfContentOwner
    pageToken:pageToken
              completionHandler: ^(ChannelListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.ChannelsApi()
var part = ; // {{array[String]}} The *part* parameter specifies a comma-separated list of one or more channel resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channel resource, the contentDetails property contains other properties, such as the uploads properties. As such, if you set *part=contentDetails*, the API response will also contain all of those nested properties.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'categoryId': categoryId_example, // {{String}} Return the channels within the specified guide category ID.
  'forUsername': forUsername_example, // {{String}} Return the channel associated with a YouTube username.
  'hl': hl_example, // {{String}} Stands for "host language". Specifies the localization language of the metadata to be filled into snippet.localized. The field is filled with the default metadata if there is no localization in the specified language. The parameter value must be a language code included in the list returned by the i18nLanguages.list method (e.g. en_US, es_MX).
  'id': , // {{array[String]}} Return the channels with the specified IDs.
  'managedByMe': true, // {{Boolean}} Return the channels managed by the authenticated user.
  'maxResults': 56, // {{Integer}} The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
  'mine': true, // {{Boolean}} Return the ids of channels owned by the authenticated user.
  'mySubscribers': true, // {{Boolean}} Return the channels subscribed to the authenticated user
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example, // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
  'pageToken': pageToken_example // {{String}} The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.channels.list(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.channels.listExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ChannelsApi();
            var part = new array[String](); // array[String] | The *part* parameter specifies a comma-separated list of one or more channel resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channel resource, the contentDetails property contains other properties, such as the uploads properties. As such, if you set *part=contentDetails*, the API response will also contain all of those nested properties.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var categoryId = categoryId_example;  // String | Return the channels within the specified guide category ID. (optional) 
            var forUsername = forUsername_example;  // String | Return the channel associated with a YouTube username. (optional) 
            var hl = hl_example;  // String | Stands for "host language". Specifies the localization language of the metadata to be filled into snippet.localized. The field is filled with the default metadata if there is no localization in the specified language. The parameter value must be a language code included in the list returned by the i18nLanguages.list method (e.g. en_US, es_MX). (optional) 
            var id = new array[String](); // array[String] | Return the channels with the specified IDs. (optional) 
            var managedByMe = true;  // Boolean | Return the channels managed by the authenticated user. (optional) 
            var maxResults = 56;  // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional) 
            var mine = true;  // Boolean | Return the ids of channels owned by the authenticated user. (optional) 
            var mySubscribers = true;  // Boolean | Return the channels subscribed to the authenticated user (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 
            var pageToken = pageToken_example;  // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional) 

            try
            {
                ChannelListResponse result = apiInstance.youtube.channels.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, categoryId, forUsername, hl, id, managedByMe, maxResults, mine, mySubscribers, onBehalfOfContentOwner, pageToken);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelsApi.youtube.channels.list: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiChannelsApi();
$part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more channel resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channel resource, the contentDetails property contains other properties, such as the uploads properties. As such, if you set *part=contentDetails*, the API response will also contain all of those nested properties.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$categoryId = categoryId_example; // String | Return the channels within the specified guide category ID.
$forUsername = forUsername_example; // String | Return the channel associated with a YouTube username.
$hl = hl_example; // String | Stands for "host language". Specifies the localization language of the metadata to be filled into snippet.localized. The field is filled with the default metadata if there is no localization in the specified language. The parameter value must be a language code included in the list returned by the i18nLanguages.list method (e.g. en_US, es_MX).
$id = ; // array[String] | Return the channels with the specified IDs.
$managedByMe = true; // Boolean | Return the channels managed by the authenticated user.
$maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
$mine = true; // Boolean | Return the ids of channels owned by the authenticated user.
$mySubscribers = true; // Boolean | Return the channels subscribed to the authenticated user
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
$pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

try {
    $result = $api_instance->youtube.channels.list($part, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $categoryId, $forUsername, $hl, $id, $managedByMe, $maxResults, $mine, $mySubscribers, $onBehalfOfContentOwner, $pageToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChannelsApi->youtube.channels.list: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChannelsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ChannelsApi->new();
my $part = []; # array[String] | The *part* parameter specifies a comma-separated list of one or more channel resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channel resource, the contentDetails property contains other properties, such as the uploads properties. As such, if you set *part=contentDetails*, the API response will also contain all of those nested properties.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $categoryId = categoryId_example; # String | Return the channels within the specified guide category ID.
my $forUsername = forUsername_example; # String | Return the channel associated with a YouTube username.
my $hl = hl_example; # String | Stands for "host language". Specifies the localization language of the metadata to be filled into snippet.localized. The field is filled with the default metadata if there is no localization in the specified language. The parameter value must be a language code included in the list returned by the i18nLanguages.list method (e.g. en_US, es_MX).
my $id = []; # array[String] | Return the channels with the specified IDs.
my $managedByMe = true; # Boolean | Return the channels managed by the authenticated user.
my $maxResults = 56; # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
my $mine = true; # Boolean | Return the ids of channels owned by the authenticated user.
my $mySubscribers = true; # Boolean | Return the channels subscribed to the authenticated user
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
my $pageToken = pageToken_example; # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

eval { 
    my $result = $api_instance->youtube.channels.list(part => $part, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, categoryId => $categoryId, forUsername => $forUsername, hl => $hl, id => $id, managedByMe => $managedByMe, maxResults => $maxResults, mine => $mine, mySubscribers => $mySubscribers, onBehalfOfContentOwner => $onBehalfOfContentOwner, pageToken => $pageToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChannelsApi->youtube.channels.list: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ChannelsApi()
part =  # array[String] | The *part* parameter specifies a comma-separated list of one or more channel resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channel resource, the contentDetails property contains other properties, such as the uploads properties. As such, if you set *part=contentDetails*, the API response will also contain all of those nested properties.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
categoryId = categoryId_example # String | Return the channels within the specified guide category ID. (optional)
forUsername = forUsername_example # String | Return the channel associated with a YouTube username. (optional)
hl = hl_example # String | Stands for "host language". Specifies the localization language of the metadata to be filled into snippet.localized. The field is filled with the default metadata if there is no localization in the specified language. The parameter value must be a language code included in the list returned by the i18nLanguages.list method (e.g. en_US, es_MX). (optional)
id =  # array[String] | Return the channels with the specified IDs. (optional)
managedByMe = true # Boolean | Return the channels managed by the authenticated user. (optional)
maxResults = 56 # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
mine = true # Boolean | Return the ids of channels owned by the authenticated user. (optional)
mySubscribers = true # Boolean | Return the channels subscribed to the authenticated user (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
pageToken = pageToken_example # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)

try: 
    api_response = api_instance.youtube/channels/list(part, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, categoryId=categoryId, forUsername=forUsername, hl=hl, id=id, managedByMe=managedByMe, maxResults=maxResults, mine=mine, mySubscribers=mySubscribers, onBehalfOfContentOwner=onBehalfOfContentOwner, pageToken=pageToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChannelsApi->youtube.channels.list: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter specifies a comma-separated list of one or more channel resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channel resource, the contentDetails property contains other properties, such as the uploads properties. As such, if you set *part=contentDetails*, the API response will also contain all of those nested properties.
Required
categoryId
String
Return the channels within the specified guide category ID.
forUsername
String
Return the channel associated with a YouTube username.
hl
String
Stands for "host language". Specifies the localization language of the metadata to be filled into snippet.localized. The field is filled with the default metadata if there is no localization in the specified language. The parameter value must be a language code included in the list returned by the i18nLanguages.list method (e.g. en_US, es_MX).
id
array[String]
Return the channels with the specified IDs.
managedByMe
Boolean
Return the channels managed by the authenticated user.
maxResults
Integer
The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
mine
Boolean
Return the ids of channels owned by the authenticated user.
mySubscribers
Boolean
Return the channels subscribed to the authenticated user
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
pageToken
String
The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

Responses

Status: 200 - Successful response


youtube.channels.update

Updates an existing resource.


/youtube/v3/channels

Usage and SDK Samples

curl -X PUT\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://youtube.googleapis.com//youtube/v3/channels?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&onBehalfOfContentOwner="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelsApi;

import java.io.File;
import java.util.*;

public class ChannelsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        ChannelsApi apiInstance = new ChannelsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The API currently only allows the parameter value to be set to either brandingSettings or invideoPromotion. (You cannot update both of those parts with a single request.) Note that this method overrides the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies.
        Channel body = ; // Channel | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | The *onBehalfOfContentOwner* parameter indicates that the authenticated user is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with needs to be linked to the specified YouTube content owner.
        try {
            Channel result = apiInstance.youtube.channels.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsApi#youtube.channels.update");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelsApi;

public class ChannelsApiExample {

    public static void main(String[] args) {
        ChannelsApi apiInstance = new ChannelsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The API currently only allows the parameter value to be set to either brandingSettings or invideoPromotion. (You cannot update both of those parts with a single request.) Note that this method overrides the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies.
        Channel body = ; // Channel | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | The *onBehalfOfContentOwner* parameter indicates that the authenticated user is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with needs to be linked to the specified YouTube content owner.
        try {
            Channel result = apiInstance.youtube.channels.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelsApi#youtube.channels.update");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The API currently only allows the parameter value to be set to either brandingSettings or invideoPromotion. (You cannot update both of those parts with a single request.) Note that this method overrides the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies.
Channel *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // The *onBehalfOfContentOwner* parameter indicates that the authenticated user is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with needs to be linked to the specified YouTube content owner. (optional)

ChannelsApi *apiInstance = [[ChannelsApi alloc] init];

[apiInstance youtube.channels.updateWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
              completionHandler: ^(Channel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.ChannelsApi()
var part = ; // {{array[String]}} The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The API currently only allows the parameter value to be set to either brandingSettings or invideoPromotion. (You cannot update both of those parts with a single request.) Note that this method overrides the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies.
var opts = { 
  'body':  // {{Channel}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} The *onBehalfOfContentOwner* parameter indicates that the authenticated user is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with needs to be linked to the specified YouTube content owner.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.channels.update(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.channels.updateExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ChannelsApi();
            var part = new array[String](); // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The API currently only allows the parameter value to be set to either brandingSettings or invideoPromotion. (You cannot update both of those parts with a single request.) Note that this method overrides the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies.
            var body = new Channel(); // Channel |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | The *onBehalfOfContentOwner* parameter indicates that the authenticated user is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with needs to be linked to the specified YouTube content owner. (optional) 

            try
            {
                Channel result = apiInstance.youtube.channels.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelsApi.youtube.channels.update: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiChannelsApi();
$part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The API currently only allows the parameter value to be set to either brandingSettings or invideoPromotion. (You cannot update both of those parts with a single request.) Note that this method overrides the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies.
$body = ; // Channel | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | The *onBehalfOfContentOwner* parameter indicates that the authenticated user is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with needs to be linked to the specified YouTube content owner.

try {
    $result = $api_instance->youtube.channels.update($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChannelsApi->youtube.channels.update: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChannelsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ChannelsApi->new();
my $part = []; # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The API currently only allows the parameter value to be set to either brandingSettings or invideoPromotion. (You cannot update both of those parts with a single request.) Note that this method overrides the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies.
my $body = WWW::SwaggerClient::Object::Channel->new(); # Channel | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | The *onBehalfOfContentOwner* parameter indicates that the authenticated user is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with needs to be linked to the specified YouTube content owner.

eval { 
    my $result = $api_instance->youtube.channels.update(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChannelsApi->youtube.channels.update: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ChannelsApi()
part =  # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The API currently only allows the parameter value to be set to either brandingSettings or invideoPromotion. (You cannot update both of those parts with a single request.) Note that this method overrides the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies.
body =  # Channel |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | The *onBehalfOfContentOwner* parameter indicates that the authenticated user is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with needs to be linked to the specified YouTube content owner. (optional)

try: 
    api_response = api_instance.youtube/channels/update(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChannelsApi->youtube.channels.update: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The API currently only allows the parameter value to be set to either brandingSettings or invideoPromotion. (You cannot update both of those parts with a single request.) Note that this method overrides the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies.
Required
onBehalfOfContentOwner
String
The *onBehalfOfContentOwner* parameter indicates that the authenticated user is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with needs to be linked to the specified YouTube content owner.

Responses

Status: 200 - Successful response


CommentThreads

youtube.commentThreads.insert

Inserts a new resource into this collection.


/youtube/v3/commentThreads

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://youtube.googleapis.com//youtube/v3/commentThreads?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CommentThreadsApi;

import java.io.File;
import java.util.*;

public class CommentThreadsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        CommentThreadsApi apiInstance = new CommentThreadsApi();
        array[String] part = ; // array[String] | The *part* parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.
        CommentThread body = ; // CommentThread | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            CommentThread result = apiInstance.youtube.commentThreads.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommentThreadsApi#youtube.commentThreads.insert");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CommentThreadsApi;

public class CommentThreadsApiExample {

    public static void main(String[] args) {
        CommentThreadsApi apiInstance = new CommentThreadsApi();
        array[String] part = ; // array[String] | The *part* parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.
        CommentThread body = ; // CommentThread | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            CommentThread result = apiInstance.youtube.commentThreads.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommentThreadsApi#youtube.commentThreads.insert");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.
CommentThread *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

CommentThreadsApi *apiInstance = [[CommentThreadsApi alloc] init];

[apiInstance youtube.commentThreads.insertWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
              completionHandler: ^(CommentThread output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.CommentThreadsApi()
var part = ; // {{array[String]}} The *part* parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.
var opts = { 
  'body':  // {{CommentThread}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.commentThreads.insert(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.commentThreads.insertExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CommentThreadsApi();
            var part = new array[String](); // array[String] | The *part* parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.
            var body = new CommentThread(); // CommentThread |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 

            try
            {
                CommentThread result = apiInstance.youtube.commentThreads.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CommentThreadsApi.youtube.commentThreads.insert: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCommentThreadsApi();
$part = ; // array[String] | The *part* parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.
$body = ; // CommentThread | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").

try {
    $result = $api_instance->youtube.commentThreads.insert($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CommentThreadsApi->youtube.commentThreads.insert: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CommentThreadsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CommentThreadsApi->new();
my $part = []; # array[String] | The *part* parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.
my $body = WWW::SwaggerClient::Object::CommentThread->new(); # CommentThread | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").

eval { 
    my $result = $api_instance->youtube.commentThreads.insert(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CommentThreadsApi->youtube.commentThreads.insert: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CommentThreadsApi()
part =  # array[String] | The *part* parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.
body =  # CommentThread |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

try: 
    api_response = api_instance.youtube/comment_threads/insert(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CommentThreadsApi->youtube.commentThreads.insert: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.
Required

Responses

Status: 200 - Successful response


youtube.commentThreads.list

Retrieves a list of resources, possibly filtered.


/youtube/v3/commentThreads

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/commentThreads?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&allThreadsRelatedToChannelId=&channelId=&id=&maxResults=&moderationStatus=&order=&pageToken=&searchTerms=&textFormat=&videoId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CommentThreadsApi;

import java.io.File;
import java.util.*;

public class CommentThreadsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        CommentThreadsApi apiInstance = new CommentThreadsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more commentThread resource properties that the API response will include.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String allThreadsRelatedToChannelId = allThreadsRelatedToChannelId_example; // String | Returns the comment threads of all videos of the channel and the channel comments as well.
        String channelId = channelId_example; // String | Returns the comment threads for all the channel comments (ie does not include comments left on videos).
        array[String] id = ; // array[String] | Returns the comment threads with the given IDs for Stubby or Apiary.
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        String moderationStatus = moderationStatus_example; // String | Limits the returned comment threads to those with the specified moderation status. Not compatible with the 'id' filter. Valid values: published, heldForReview, likelySpam.
        String order = order_example; // String | 
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        String searchTerms = searchTerms_example; // String | Limits the returned comment threads to those matching the specified key words. Not compatible with the 'id' filter.
        String textFormat = textFormat_example; // String | The requested text format for the returned comments.
        String videoId = videoId_example; // String | Returns the comment threads of the specified video.
        try {
            CommentThreadListResponse result = apiInstance.youtube.commentThreads.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, allThreadsRelatedToChannelId, channelId, id, maxResults, moderationStatus, order, pageToken, searchTerms, textFormat, videoId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommentThreadsApi#youtube.commentThreads.list");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CommentThreadsApi;

public class CommentThreadsApiExample {

    public static void main(String[] args) {
        CommentThreadsApi apiInstance = new CommentThreadsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more commentThread resource properties that the API response will include.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String allThreadsRelatedToChannelId = allThreadsRelatedToChannelId_example; // String | Returns the comment threads of all videos of the channel and the channel comments as well.
        String channelId = channelId_example; // String | Returns the comment threads for all the channel comments (ie does not include comments left on videos).
        array[String] id = ; // array[String] | Returns the comment threads with the given IDs for Stubby or Apiary.
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        String moderationStatus = moderationStatus_example; // String | Limits the returned comment threads to those with the specified moderation status. Not compatible with the 'id' filter. Valid values: published, heldForReview, likelySpam.
        String order = order_example; // String | 
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        String searchTerms = searchTerms_example; // String | Limits the returned comment threads to those matching the specified key words. Not compatible with the 'id' filter.
        String textFormat = textFormat_example; // String | The requested text format for the returned comments.
        String videoId = videoId_example; // String | Returns the comment threads of the specified video.
        try {
            CommentThreadListResponse result = apiInstance.youtube.commentThreads.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, allThreadsRelatedToChannelId, channelId, id, maxResults, moderationStatus, order, pageToken, searchTerms, textFormat, videoId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommentThreadsApi#youtube.commentThreads.list");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter specifies a comma-separated list of one or more commentThread resource properties that the API response will include.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *allThreadsRelatedToChannelId = allThreadsRelatedToChannelId_example; // Returns the comment threads of all videos of the channel and the channel comments as well. (optional)
String *channelId = channelId_example; // Returns the comment threads for all the channel comments (ie does not include comments left on videos). (optional)
array[String] *id = ; // Returns the comment threads with the given IDs for Stubby or Apiary. (optional)
Integer *maxResults = 56; // The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
String *moderationStatus = moderationStatus_example; // Limits the returned comment threads to those with the specified moderation status. Not compatible with the 'id' filter. Valid values: published, heldForReview, likelySpam. (optional)
String *order = order_example; //  (optional)
String *pageToken = pageToken_example; // The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)
String *searchTerms = searchTerms_example; // Limits the returned comment threads to those matching the specified key words. Not compatible with the 'id' filter. (optional)
String *textFormat = textFormat_example; // The requested text format for the returned comments. (optional)
String *videoId = videoId_example; // Returns the comment threads of the specified video. (optional)

CommentThreadsApi *apiInstance = [[CommentThreadsApi alloc] init];

[apiInstance youtube.commentThreads.listWith:part
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    allThreadsRelatedToChannelId:allThreadsRelatedToChannelId
    channelId:channelId
    id:id
    maxResults:maxResults
    moderationStatus:moderationStatus
    order:order
    pageToken:pageToken
    searchTerms:searchTerms
    textFormat:textFormat
    videoId:videoId
              completionHandler: ^(CommentThreadListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.CommentThreadsApi()
var part = ; // {{array[String]}} The *part* parameter specifies a comma-separated list of one or more commentThread resource properties that the API response will include.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'allThreadsRelatedToChannelId': allThreadsRelatedToChannelId_example, // {{String}} Returns the comment threads of all videos of the channel and the channel comments as well.
  'channelId': channelId_example, // {{String}} Returns the comment threads for all the channel comments (ie does not include comments left on videos).
  'id': , // {{array[String]}} Returns the comment threads with the given IDs for Stubby or Apiary.
  'maxResults': 56, // {{Integer}} The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
  'moderationStatus': moderationStatus_example, // {{String}} Limits the returned comment threads to those with the specified moderation status. Not compatible with the 'id' filter. Valid values: published, heldForReview, likelySpam.
  'order': order_example, // {{String}} 
  'pageToken': pageToken_example, // {{String}} The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
  'searchTerms': searchTerms_example, // {{String}} Limits the returned comment threads to those matching the specified key words. Not compatible with the 'id' filter.
  'textFormat': textFormat_example, // {{String}} The requested text format for the returned comments.
  'videoId': videoId_example // {{String}} Returns the comment threads of the specified video.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.commentThreads.list(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.commentThreads.listExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CommentThreadsApi();
            var part = new array[String](); // array[String] | The *part* parameter specifies a comma-separated list of one or more commentThread resource properties that the API response will include.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var allThreadsRelatedToChannelId = allThreadsRelatedToChannelId_example;  // String | Returns the comment threads of all videos of the channel and the channel comments as well. (optional) 
            var channelId = channelId_example;  // String | Returns the comment threads for all the channel comments (ie does not include comments left on videos). (optional) 
            var id = new array[String](); // array[String] | Returns the comment threads with the given IDs for Stubby or Apiary. (optional) 
            var maxResults = 56;  // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional) 
            var moderationStatus = moderationStatus_example;  // String | Limits the returned comment threads to those with the specified moderation status. Not compatible with the 'id' filter. Valid values: published, heldForReview, likelySpam. (optional) 
            var order = order_example;  // String |  (optional) 
            var pageToken = pageToken_example;  // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional) 
            var searchTerms = searchTerms_example;  // String | Limits the returned comment threads to those matching the specified key words. Not compatible with the 'id' filter. (optional) 
            var textFormat = textFormat_example;  // String | The requested text format for the returned comments. (optional) 
            var videoId = videoId_example;  // String | Returns the comment threads of the specified video. (optional) 

            try
            {
                CommentThreadListResponse result = apiInstance.youtube.commentThreads.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, allThreadsRelatedToChannelId, channelId, id, maxResults, moderationStatus, order, pageToken, searchTerms, textFormat, videoId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CommentThreadsApi.youtube.commentThreads.list: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCommentThreadsApi();
$part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more commentThread resource properties that the API response will include.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$allThreadsRelatedToChannelId = allThreadsRelatedToChannelId_example; // String | Returns the comment threads of all videos of the channel and the channel comments as well.
$channelId = channelId_example; // String | Returns the comment threads for all the channel comments (ie does not include comments left on videos).
$id = ; // array[String] | Returns the comment threads with the given IDs for Stubby or Apiary.
$maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
$moderationStatus = moderationStatus_example; // String | Limits the returned comment threads to those with the specified moderation status. Not compatible with the 'id' filter. Valid values: published, heldForReview, likelySpam.
$order = order_example; // String | 
$pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
$searchTerms = searchTerms_example; // String | Limits the returned comment threads to those matching the specified key words. Not compatible with the 'id' filter.
$textFormat = textFormat_example; // String | The requested text format for the returned comments.
$videoId = videoId_example; // String | Returns the comment threads of the specified video.

try {
    $result = $api_instance->youtube.commentThreads.list($part, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $allThreadsRelatedToChannelId, $channelId, $id, $maxResults, $moderationStatus, $order, $pageToken, $searchTerms, $textFormat, $videoId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CommentThreadsApi->youtube.commentThreads.list: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CommentThreadsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CommentThreadsApi->new();
my $part = []; # array[String] | The *part* parameter specifies a comma-separated list of one or more commentThread resource properties that the API response will include.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $allThreadsRelatedToChannelId = allThreadsRelatedToChannelId_example; # String | Returns the comment threads of all videos of the channel and the channel comments as well.
my $channelId = channelId_example; # String | Returns the comment threads for all the channel comments (ie does not include comments left on videos).
my $id = []; # array[String] | Returns the comment threads with the given IDs for Stubby or Apiary.
my $maxResults = 56; # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
my $moderationStatus = moderationStatus_example; # String | Limits the returned comment threads to those with the specified moderation status. Not compatible with the 'id' filter. Valid values: published, heldForReview, likelySpam.
my $order = order_example; # String | 
my $pageToken = pageToken_example; # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
my $searchTerms = searchTerms_example; # String | Limits the returned comment threads to those matching the specified key words. Not compatible with the 'id' filter.
my $textFormat = textFormat_example; # String | The requested text format for the returned comments.
my $videoId = videoId_example; # String | Returns the comment threads of the specified video.

eval { 
    my $result = $api_instance->youtube.commentThreads.list(part => $part, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, allThreadsRelatedToChannelId => $allThreadsRelatedToChannelId, channelId => $channelId, id => $id, maxResults => $maxResults, moderationStatus => $moderationStatus, order => $order, pageToken => $pageToken, searchTerms => $searchTerms, textFormat => $textFormat, videoId => $videoId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CommentThreadsApi->youtube.commentThreads.list: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CommentThreadsApi()
part =  # array[String] | The *part* parameter specifies a comma-separated list of one or more commentThread resource properties that the API response will include.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
allThreadsRelatedToChannelId = allThreadsRelatedToChannelId_example # String | Returns the comment threads of all videos of the channel and the channel comments as well. (optional)
channelId = channelId_example # String | Returns the comment threads for all the channel comments (ie does not include comments left on videos). (optional)
id =  # array[String] | Returns the comment threads with the given IDs for Stubby or Apiary. (optional)
maxResults = 56 # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
moderationStatus = moderationStatus_example # String | Limits the returned comment threads to those with the specified moderation status. Not compatible with the 'id' filter. Valid values: published, heldForReview, likelySpam. (optional)
order = order_example # String |  (optional)
pageToken = pageToken_example # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)
searchTerms = searchTerms_example # String | Limits the returned comment threads to those matching the specified key words. Not compatible with the 'id' filter. (optional)
textFormat = textFormat_example # String | The requested text format for the returned comments. (optional)
videoId = videoId_example # String | Returns the comment threads of the specified video. (optional)

try: 
    api_response = api_instance.youtube/comment_threads/list(part, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, allThreadsRelatedToChannelId=allThreadsRelatedToChannelId, channelId=channelId, id=id, maxResults=maxResults, moderationStatus=moderationStatus, order=order, pageToken=pageToken, searchTerms=searchTerms, textFormat=textFormat, videoId=videoId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CommentThreadsApi->youtube.commentThreads.list: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter specifies a comma-separated list of one or more commentThread resource properties that the API response will include.
Required
allThreadsRelatedToChannelId
String
Returns the comment threads of all videos of the channel and the channel comments as well.
channelId
String
Returns the comment threads for all the channel comments (ie does not include comments left on videos).
id
array[String]
Returns the comment threads with the given IDs for Stubby or Apiary.
maxResults
Integer
The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
moderationStatus
String
Limits the returned comment threads to those with the specified moderation status. Not compatible with the 'id' filter. Valid values: published, heldForReview, likelySpam.
order
String
pageToken
String
The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
searchTerms
String
Limits the returned comment threads to those matching the specified key words. Not compatible with the 'id' filter.
textFormat
String
The requested text format for the returned comments.
videoId
String
Returns the comment threads of the specified video.

Responses

Status: 200 - Successful response


youtube.commentThreads.update

Updates an existing resource.


/youtube/v3/commentThreads

Usage and SDK Samples

curl -X PUT\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://youtube.googleapis.com//youtube/v3/commentThreads?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CommentThreadsApi;

import java.io.File;
import java.util.*;

public class CommentThreadsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        CommentThreadsApi apiInstance = new CommentThreadsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of commentThread resource properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update.
        CommentThread body = ; // CommentThread | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            CommentThread result = apiInstance.youtube.commentThreads.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommentThreadsApi#youtube.commentThreads.update");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CommentThreadsApi;

public class CommentThreadsApiExample {

    public static void main(String[] args) {
        CommentThreadsApi apiInstance = new CommentThreadsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of commentThread resource properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update.
        CommentThread body = ; // CommentThread | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            CommentThread result = apiInstance.youtube.commentThreads.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommentThreadsApi#youtube.commentThreads.update");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter specifies a comma-separated list of commentThread resource properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update.
CommentThread *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

CommentThreadsApi *apiInstance = [[CommentThreadsApi alloc] init];

[apiInstance youtube.commentThreads.updateWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
              completionHandler: ^(CommentThread output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.CommentThreadsApi()
var part = ; // {{array[String]}} The *part* parameter specifies a comma-separated list of commentThread resource properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update.
var opts = { 
  'body':  // {{CommentThread}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.commentThreads.update(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.commentThreads.updateExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CommentThreadsApi();
            var part = new array[String](); // array[String] | The *part* parameter specifies a comma-separated list of commentThread resource properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update.
            var body = new CommentThread(); // CommentThread |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 

            try
            {
                CommentThread result = apiInstance.youtube.commentThreads.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CommentThreadsApi.youtube.commentThreads.update: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCommentThreadsApi();
$part = ; // array[String] | The *part* parameter specifies a comma-separated list of commentThread resource properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update.
$body = ; // CommentThread | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").

try {
    $result = $api_instance->youtube.commentThreads.update($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CommentThreadsApi->youtube.commentThreads.update: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CommentThreadsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CommentThreadsApi->new();
my $part = []; # array[String] | The *part* parameter specifies a comma-separated list of commentThread resource properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update.
my $body = WWW::SwaggerClient::Object::CommentThread->new(); # CommentThread | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").

eval { 
    my $result = $api_instance->youtube.commentThreads.update(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CommentThreadsApi->youtube.commentThreads.update: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CommentThreadsApi()
part =  # array[String] | The *part* parameter specifies a comma-separated list of commentThread resource properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update.
body =  # CommentThread |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

try: 
    api_response = api_instance.youtube/comment_threads/update(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CommentThreadsApi->youtube.commentThreads.update: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter specifies a comma-separated list of commentThread resource properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update.
Required

Responses

Status: 200 - Successful response


Comments

youtube.comments.delete

Deletes a resource.


/youtube/v3/comments

Usage and SDK Samples

curl -X DELETE\
\
\
"https://youtube.googleapis.com//youtube/v3/comments?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CommentsApi;

import java.io.File;
import java.util.*;

public class CommentsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        CommentsApi apiInstance = new CommentsApi();
        String id = id_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            apiInstance.youtube.comments.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommentsApi#youtube.comments.delete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CommentsApi;

public class CommentsApiExample {

    public static void main(String[] args) {
        CommentsApi apiInstance = new CommentsApi();
        String id = id_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            apiInstance.youtube.comments.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommentsApi#youtube.comments.delete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *id = id_example; // 
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

CommentsApi *apiInstance = [[CommentsApi alloc] init];

[apiInstance youtube.comments.deleteWith:id
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.CommentsApi()
var id = id_example; // {{String}} 
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.youtube.comments.delete(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.comments.deleteExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CommentsApi();
            var id = id_example;  // String | 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 

            try
            {
                apiInstance.youtube.comments.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CommentsApi.youtube.comments.delete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCommentsApi();
$id = id_example; // String | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").

try {
    $api_instance->youtube.comments.delete($id, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType);
} catch (Exception $e) {
    echo 'Exception when calling CommentsApi->youtube.comments.delete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CommentsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CommentsApi->new();
my $id = id_example; # String | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").

eval { 
    $api_instance->youtube.comments.delete(id => $id, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType);
};
if ($@) {
    warn "Exception when calling CommentsApi->youtube.comments.delete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CommentsApi()
id = id_example # String | 
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

try: 
    api_instance.youtube/comments/delete(id, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType)
except ApiException as e:
    print("Exception when calling CommentsApi->youtube.comments.delete: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
id*
String
Required

Responses

Status: 200 - Successful response


youtube.comments.insert

Inserts a new resource into this collection.


/youtube/v3/comments

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://youtube.googleapis.com//youtube/v3/comments?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CommentsApi;

import java.io.File;
import java.util.*;

public class CommentsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        CommentsApi apiInstance = new CommentsApi();
        array[String] part = ; // array[String] | The *part* parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.
        Comment body = ; // Comment | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            Comment result = apiInstance.youtube.comments.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommentsApi#youtube.comments.insert");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CommentsApi;

public class CommentsApiExample {

    public static void main(String[] args) {
        CommentsApi apiInstance = new CommentsApi();
        array[String] part = ; // array[String] | The *part* parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.
        Comment body = ; // Comment | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            Comment result = apiInstance.youtube.comments.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommentsApi#youtube.comments.insert");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.
Comment *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

CommentsApi *apiInstance = [[CommentsApi alloc] init];

[apiInstance youtube.comments.insertWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
              completionHandler: ^(Comment output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.CommentsApi()
var part = ; // {{array[String]}} The *part* parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.
var opts = { 
  'body':  // {{Comment}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.comments.insert(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.comments.insertExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CommentsApi();
            var part = new array[String](); // array[String] | The *part* parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.
            var body = new Comment(); // Comment |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 

            try
            {
                Comment result = apiInstance.youtube.comments.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CommentsApi.youtube.comments.insert: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCommentsApi();
$part = ; // array[String] | The *part* parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.
$body = ; // Comment | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").

try {
    $result = $api_instance->youtube.comments.insert($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CommentsApi->youtube.comments.insert: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CommentsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CommentsApi->new();
my $part = []; # array[String] | The *part* parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.
my $body = WWW::SwaggerClient::Object::Comment->new(); # Comment | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").

eval { 
    my $result = $api_instance->youtube.comments.insert(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CommentsApi->youtube.comments.insert: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CommentsApi()
part =  # array[String] | The *part* parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.
body =  # Comment |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

try: 
    api_response = api_instance.youtube/comments/insert(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CommentsApi->youtube.comments.insert: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.
Required

Responses

Status: 200 - Successful response


youtube.comments.list

Retrieves a list of resources, possibly filtered.


/youtube/v3/comments

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/comments?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&id=&maxResults=&pageToken=&parentId=&textFormat="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CommentsApi;

import java.io.File;
import java.util.*;

public class CommentsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        CommentsApi apiInstance = new CommentsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more comment resource properties that the API response will include.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        array[String] id = ; // array[String] | Returns the comments with the given IDs for One Platform.
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        String parentId = parentId_example; // String | Returns replies to the specified comment. Note, currently YouTube features only one level of replies (ie replies to top level comments). However replies to replies may be supported in the future.
        String textFormat = textFormat_example; // String | The requested text format for the returned comments.
        try {
            CommentListResponse result = apiInstance.youtube.comments.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, id, maxResults, pageToken, parentId, textFormat);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommentsApi#youtube.comments.list");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CommentsApi;

public class CommentsApiExample {

    public static void main(String[] args) {
        CommentsApi apiInstance = new CommentsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more comment resource properties that the API response will include.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        array[String] id = ; // array[String] | Returns the comments with the given IDs for One Platform.
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        String parentId = parentId_example; // String | Returns replies to the specified comment. Note, currently YouTube features only one level of replies (ie replies to top level comments). However replies to replies may be supported in the future.
        String textFormat = textFormat_example; // String | The requested text format for the returned comments.
        try {
            CommentListResponse result = apiInstance.youtube.comments.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, id, maxResults, pageToken, parentId, textFormat);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommentsApi#youtube.comments.list");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter specifies a comma-separated list of one or more comment resource properties that the API response will include.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
array[String] *id = ; // Returns the comments with the given IDs for One Platform. (optional)
Integer *maxResults = 56; // The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
String *pageToken = pageToken_example; // The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)
String *parentId = parentId_example; // Returns replies to the specified comment. Note, currently YouTube features only one level of replies (ie replies to top level comments). However replies to replies may be supported in the future. (optional)
String *textFormat = textFormat_example; // The requested text format for the returned comments. (optional)

CommentsApi *apiInstance = [[CommentsApi alloc] init];

[apiInstance youtube.comments.listWith:part
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    id:id
    maxResults:maxResults
    pageToken:pageToken
    parentId:parentId
    textFormat:textFormat
              completionHandler: ^(CommentListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.CommentsApi()
var part = ; // {{array[String]}} The *part* parameter specifies a comma-separated list of one or more comment resource properties that the API response will include.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'id': , // {{array[String]}} Returns the comments with the given IDs for One Platform.
  'maxResults': 56, // {{Integer}} The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
  'pageToken': pageToken_example, // {{String}} The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
  'parentId': parentId_example, // {{String}} Returns replies to the specified comment. Note, currently YouTube features only one level of replies (ie replies to top level comments). However replies to replies may be supported in the future.
  'textFormat': textFormat_example // {{String}} The requested text format for the returned comments.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.comments.list(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.comments.listExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CommentsApi();
            var part = new array[String](); // array[String] | The *part* parameter specifies a comma-separated list of one or more comment resource properties that the API response will include.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var id = new array[String](); // array[String] | Returns the comments with the given IDs for One Platform. (optional) 
            var maxResults = 56;  // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional) 
            var pageToken = pageToken_example;  // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional) 
            var parentId = parentId_example;  // String | Returns replies to the specified comment. Note, currently YouTube features only one level of replies (ie replies to top level comments). However replies to replies may be supported in the future. (optional) 
            var textFormat = textFormat_example;  // String | The requested text format for the returned comments. (optional) 

            try
            {
                CommentListResponse result = apiInstance.youtube.comments.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, id, maxResults, pageToken, parentId, textFormat);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CommentsApi.youtube.comments.list: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCommentsApi();
$part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more comment resource properties that the API response will include.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$id = ; // array[String] | Returns the comments with the given IDs for One Platform.
$maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
$pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
$parentId = parentId_example; // String | Returns replies to the specified comment. Note, currently YouTube features only one level of replies (ie replies to top level comments). However replies to replies may be supported in the future.
$textFormat = textFormat_example; // String | The requested text format for the returned comments.

try {
    $result = $api_instance->youtube.comments.list($part, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $id, $maxResults, $pageToken, $parentId, $textFormat);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CommentsApi->youtube.comments.list: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CommentsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CommentsApi->new();
my $part = []; # array[String] | The *part* parameter specifies a comma-separated list of one or more comment resource properties that the API response will include.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $id = []; # array[String] | Returns the comments with the given IDs for One Platform.
my $maxResults = 56; # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
my $pageToken = pageToken_example; # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
my $parentId = parentId_example; # String | Returns replies to the specified comment. Note, currently YouTube features only one level of replies (ie replies to top level comments). However replies to replies may be supported in the future.
my $textFormat = textFormat_example; # String | The requested text format for the returned comments.

eval { 
    my $result = $api_instance->youtube.comments.list(part => $part, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, id => $id, maxResults => $maxResults, pageToken => $pageToken, parentId => $parentId, textFormat => $textFormat);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CommentsApi->youtube.comments.list: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CommentsApi()
part =  # array[String] | The *part* parameter specifies a comma-separated list of one or more comment resource properties that the API response will include.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
id =  # array[String] | Returns the comments with the given IDs for One Platform. (optional)
maxResults = 56 # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
pageToken = pageToken_example # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)
parentId = parentId_example # String | Returns replies to the specified comment. Note, currently YouTube features only one level of replies (ie replies to top level comments). However replies to replies may be supported in the future. (optional)
textFormat = textFormat_example # String | The requested text format for the returned comments. (optional)

try: 
    api_response = api_instance.youtube/comments/list(part, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, id=id, maxResults=maxResults, pageToken=pageToken, parentId=parentId, textFormat=textFormat)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CommentsApi->youtube.comments.list: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter specifies a comma-separated list of one or more comment resource properties that the API response will include.
Required
id
array[String]
Returns the comments with the given IDs for One Platform.
maxResults
Integer
The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
pageToken
String
The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
parentId
String
Returns replies to the specified comment. Note, currently YouTube features only one level of replies (ie replies to top level comments). However replies to replies may be supported in the future.
textFormat
String
The requested text format for the returned comments.

Responses

Status: 200 - Successful response


youtube.comments.markAsSpam

Expresses the caller's opinion that one or more comments should be flagged as spam.


/youtube/v3/comments/markAsSpam

Usage and SDK Samples

curl -X POST\
\
\
"https://youtube.googleapis.com//youtube/v3/comments/markAsSpam?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CommentsApi;

import java.io.File;
import java.util.*;

public class CommentsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        CommentsApi apiInstance = new CommentsApi();
        array[String] id = ; // array[String] | Flags the comments with the given IDs as spam in the caller's opinion.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            apiInstance.youtube.comments.markAsSpam(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommentsApi#youtube.comments.markAsSpam");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CommentsApi;

public class CommentsApiExample {

    public static void main(String[] args) {
        CommentsApi apiInstance = new CommentsApi();
        array[String] id = ; // array[String] | Flags the comments with the given IDs as spam in the caller's opinion.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            apiInstance.youtube.comments.markAsSpam(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommentsApi#youtube.comments.markAsSpam");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *id = ; // Flags the comments with the given IDs as spam in the caller's opinion.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

CommentsApi *apiInstance = [[CommentsApi alloc] init];

[apiInstance youtube.comments.markAsSpamWith:id
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.CommentsApi()
var id = ; // {{array[String]}} Flags the comments with the given IDs as spam in the caller's opinion.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.youtube.comments.markAsSpam(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.comments.markAsSpamExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CommentsApi();
            var id = new array[String](); // array[String] | Flags the comments with the given IDs as spam in the caller's opinion.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 

            try
            {
                apiInstance.youtube.comments.markAsSpam(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CommentsApi.youtube.comments.markAsSpam: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCommentsApi();
$id = ; // array[String] | Flags the comments with the given IDs as spam in the caller's opinion.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").

try {
    $api_instance->youtube.comments.markAsSpam($id, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType);
} catch (Exception $e) {
    echo 'Exception when calling CommentsApi->youtube.comments.markAsSpam: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CommentsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CommentsApi->new();
my $id = []; # array[String] | Flags the comments with the given IDs as spam in the caller's opinion.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").

eval { 
    $api_instance->youtube.comments.markAsSpam(id => $id, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType);
};
if ($@) {
    warn "Exception when calling CommentsApi->youtube.comments.markAsSpam: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CommentsApi()
id =  # array[String] | Flags the comments with the given IDs as spam in the caller's opinion.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

try: 
    api_instance.youtube/comments/mark_as_spam(id, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType)
except ApiException as e:
    print("Exception when calling CommentsApi->youtube.comments.markAsSpam: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
id*
array[String]
Flags the comments with the given IDs as spam in the caller's opinion.
Required

Responses

Status: 200 - Successful response


youtube.comments.setModerationStatus

Sets the moderation status of one or more comments.


/youtube/v3/comments/setModerationStatus

Usage and SDK Samples

curl -X POST\
\
\
"https://youtube.googleapis.com//youtube/v3/comments/setModerationStatus?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&id=&moderationStatus=&banAuthor="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CommentsApi;

import java.io.File;
import java.util.*;

public class CommentsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        CommentsApi apiInstance = new CommentsApi();
        array[String] id = ; // array[String] | Modifies the moderation status of the comments with the given IDs
        String moderationStatus = moderationStatus_example; // String | Specifies the requested moderation status. Note, comments can be in statuses, which are not available through this call. For example, this call does not allow to mark a comment as 'likely spam'. Valid values: MODERATION_STATUS_PUBLISHED, MODERATION_STATUS_HELD_FOR_REVIEW, MODERATION_STATUS_REJECTED.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        Boolean banAuthor = true; // Boolean | If set to true the author of the comment gets added to the ban list. This means all future comments of the author will autmomatically be rejected. Only valid in combination with STATUS_REJECTED.
        try {
            apiInstance.youtube.comments.setModerationStatus(id, moderationStatus, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, banAuthor);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommentsApi#youtube.comments.setModerationStatus");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CommentsApi;

public class CommentsApiExample {

    public static void main(String[] args) {
        CommentsApi apiInstance = new CommentsApi();
        array[String] id = ; // array[String] | Modifies the moderation status of the comments with the given IDs
        String moderationStatus = moderationStatus_example; // String | Specifies the requested moderation status. Note, comments can be in statuses, which are not available through this call. For example, this call does not allow to mark a comment as 'likely spam'. Valid values: MODERATION_STATUS_PUBLISHED, MODERATION_STATUS_HELD_FOR_REVIEW, MODERATION_STATUS_REJECTED.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        Boolean banAuthor = true; // Boolean | If set to true the author of the comment gets added to the ban list. This means all future comments of the author will autmomatically be rejected. Only valid in combination with STATUS_REJECTED.
        try {
            apiInstance.youtube.comments.setModerationStatus(id, moderationStatus, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, banAuthor);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommentsApi#youtube.comments.setModerationStatus");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *id = ; // Modifies the moderation status of the comments with the given IDs
String *moderationStatus = moderationStatus_example; // Specifies the requested moderation status. Note, comments can be in statuses, which are not available through this call. For example, this call does not allow to mark a comment as 'likely spam'. Valid values: MODERATION_STATUS_PUBLISHED, MODERATION_STATUS_HELD_FOR_REVIEW, MODERATION_STATUS_REJECTED.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
Boolean *banAuthor = true; // If set to true the author of the comment gets added to the ban list. This means all future comments of the author will autmomatically be rejected. Only valid in combination with STATUS_REJECTED. (optional)

CommentsApi *apiInstance = [[CommentsApi alloc] init];

[apiInstance youtube.comments.setModerationStatusWith:id
    moderationStatus:moderationStatus
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    banAuthor:banAuthor
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.CommentsApi()
var id = ; // {{array[String]}} Modifies the moderation status of the comments with the given IDs
var moderationStatus = moderationStatus_example; // {{String}} Specifies the requested moderation status. Note, comments can be in statuses, which are not available through this call. For example, this call does not allow to mark a comment as 'likely spam'. Valid values: MODERATION_STATUS_PUBLISHED, MODERATION_STATUS_HELD_FOR_REVIEW, MODERATION_STATUS_REJECTED.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'banAuthor': true // {{Boolean}} If set to true the author of the comment gets added to the ban list. This means all future comments of the author will autmomatically be rejected. Only valid in combination with STATUS_REJECTED.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.youtube.comments.setModerationStatus(id, moderationStatus, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.comments.setModerationStatusExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CommentsApi();
            var id = new array[String](); // array[String] | Modifies the moderation status of the comments with the given IDs
            var moderationStatus = moderationStatus_example;  // String | Specifies the requested moderation status. Note, comments can be in statuses, which are not available through this call. For example, this call does not allow to mark a comment as 'likely spam'. Valid values: MODERATION_STATUS_PUBLISHED, MODERATION_STATUS_HELD_FOR_REVIEW, MODERATION_STATUS_REJECTED.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var banAuthor = true;  // Boolean | If set to true the author of the comment gets added to the ban list. This means all future comments of the author will autmomatically be rejected. Only valid in combination with STATUS_REJECTED. (optional) 

            try
            {
                apiInstance.youtube.comments.setModerationStatus(id, moderationStatus, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, banAuthor);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CommentsApi.youtube.comments.setModerationStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCommentsApi();
$id = ; // array[String] | Modifies the moderation status of the comments with the given IDs
$moderationStatus = moderationStatus_example; // String | Specifies the requested moderation status. Note, comments can be in statuses, which are not available through this call. For example, this call does not allow to mark a comment as 'likely spam'. Valid values: MODERATION_STATUS_PUBLISHED, MODERATION_STATUS_HELD_FOR_REVIEW, MODERATION_STATUS_REJECTED.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$banAuthor = true; // Boolean | If set to true the author of the comment gets added to the ban list. This means all future comments of the author will autmomatically be rejected. Only valid in combination with STATUS_REJECTED.

try {
    $api_instance->youtube.comments.setModerationStatus($id, $moderationStatus, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $banAuthor);
} catch (Exception $e) {
    echo 'Exception when calling CommentsApi->youtube.comments.setModerationStatus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CommentsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CommentsApi->new();
my $id = []; # array[String] | Modifies the moderation status of the comments with the given IDs
my $moderationStatus = moderationStatus_example; # String | Specifies the requested moderation status. Note, comments can be in statuses, which are not available through this call. For example, this call does not allow to mark a comment as 'likely spam'. Valid values: MODERATION_STATUS_PUBLISHED, MODERATION_STATUS_HELD_FOR_REVIEW, MODERATION_STATUS_REJECTED.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $banAuthor = true; # Boolean | If set to true the author of the comment gets added to the ban list. This means all future comments of the author will autmomatically be rejected. Only valid in combination with STATUS_REJECTED.

eval { 
    $api_instance->youtube.comments.setModerationStatus(id => $id, moderationStatus => $moderationStatus, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, banAuthor => $banAuthor);
};
if ($@) {
    warn "Exception when calling CommentsApi->youtube.comments.setModerationStatus: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CommentsApi()
id =  # array[String] | Modifies the moderation status of the comments with the given IDs
moderationStatus = moderationStatus_example # String | Specifies the requested moderation status. Note, comments can be in statuses, which are not available through this call. For example, this call does not allow to mark a comment as 'likely spam'. Valid values: MODERATION_STATUS_PUBLISHED, MODERATION_STATUS_HELD_FOR_REVIEW, MODERATION_STATUS_REJECTED.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
banAuthor = true # Boolean | If set to true the author of the comment gets added to the ban list. This means all future comments of the author will autmomatically be rejected. Only valid in combination with STATUS_REJECTED. (optional)

try: 
    api_instance.youtube/comments/set_moderation_status(id, moderationStatus, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, banAuthor=banAuthor)
except ApiException as e:
    print("Exception when calling CommentsApi->youtube.comments.setModerationStatus: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
id*
array[String]
Modifies the moderation status of the comments with the given IDs
Required
moderationStatus*
String
Specifies the requested moderation status. Note, comments can be in statuses, which are not available through this call. For example, this call does not allow to mark a comment as 'likely spam'. Valid values: MODERATION_STATUS_PUBLISHED, MODERATION_STATUS_HELD_FOR_REVIEW, MODERATION_STATUS_REJECTED.
Required
banAuthor
Boolean
If set to true the author of the comment gets added to the ban list. This means all future comments of the author will autmomatically be rejected. Only valid in combination with STATUS_REJECTED.

Responses

Status: 200 - Successful response


youtube.comments.update

Updates an existing resource.


/youtube/v3/comments

Usage and SDK Samples

curl -X PUT\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://youtube.googleapis.com//youtube/v3/comments?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CommentsApi;

import java.io.File;
import java.util.*;

public class CommentsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        CommentsApi apiInstance = new CommentsApi();
        array[String] part = ; // array[String] | The *part* parameter identifies the properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update.
        Comment body = ; // Comment | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            Comment result = apiInstance.youtube.comments.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommentsApi#youtube.comments.update");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CommentsApi;

public class CommentsApiExample {

    public static void main(String[] args) {
        CommentsApi apiInstance = new CommentsApi();
        array[String] part = ; // array[String] | The *part* parameter identifies the properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update.
        Comment body = ; // Comment | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            Comment result = apiInstance.youtube.comments.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommentsApi#youtube.comments.update");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter identifies the properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update.
Comment *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

CommentsApi *apiInstance = [[CommentsApi alloc] init];

[apiInstance youtube.comments.updateWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
              completionHandler: ^(Comment output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.CommentsApi()
var part = ; // {{array[String]}} The *part* parameter identifies the properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update.
var opts = { 
  'body':  // {{Comment}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.comments.update(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.comments.updateExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CommentsApi();
            var part = new array[String](); // array[String] | The *part* parameter identifies the properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update.
            var body = new Comment(); // Comment |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 

            try
            {
                Comment result = apiInstance.youtube.comments.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CommentsApi.youtube.comments.update: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCommentsApi();
$part = ; // array[String] | The *part* parameter identifies the properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update.
$body = ; // Comment | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").

try {
    $result = $api_instance->youtube.comments.update($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CommentsApi->youtube.comments.update: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CommentsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CommentsApi->new();
my $part = []; # array[String] | The *part* parameter identifies the properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update.
my $body = WWW::SwaggerClient::Object::Comment->new(); # Comment | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").

eval { 
    my $result = $api_instance->youtube.comments.update(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CommentsApi->youtube.comments.update: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CommentsApi()
part =  # array[String] | The *part* parameter identifies the properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update.
body =  # Comment |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

try: 
    api_response = api_instance.youtube/comments/update(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CommentsApi->youtube.comments.update: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter identifies the properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update.
Required

Responses

Status: 200 - Successful response


I18nLanguages

youtube.i18nLanguages.list

Retrieves a list of resources, possibly filtered.


/youtube/v3/i18nLanguages

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/i18nLanguages?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&hl="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.I18nLanguagesApi;

import java.io.File;
import java.util.*;

public class I18nLanguagesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        I18nLanguagesApi apiInstance = new I18nLanguagesApi();
        array[String] part = ; // array[String] | The *part* parameter specifies the i18nLanguage resource properties that the API response will include. Set the parameter value to snippet.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String hl = hl_example; // String | 
        try {
            I18nLanguageListResponse result = apiInstance.youtube.i18nLanguages.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, hl);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling I18nLanguagesApi#youtube.i18nLanguages.list");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.I18nLanguagesApi;

public class I18nLanguagesApiExample {

    public static void main(String[] args) {
        I18nLanguagesApi apiInstance = new I18nLanguagesApi();
        array[String] part = ; // array[String] | The *part* parameter specifies the i18nLanguage resource properties that the API response will include. Set the parameter value to snippet.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String hl = hl_example; // String | 
        try {
            I18nLanguageListResponse result = apiInstance.youtube.i18nLanguages.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, hl);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling I18nLanguagesApi#youtube.i18nLanguages.list");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter specifies the i18nLanguage resource properties that the API response will include. Set the parameter value to snippet.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *hl = hl_example; //  (optional)

I18nLanguagesApi *apiInstance = [[I18nLanguagesApi alloc] init];

[apiInstance youtube.i18nLanguages.listWith:part
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    hl:hl
              completionHandler: ^(I18nLanguageListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.I18nLanguagesApi()
var part = ; // {{array[String]}} The *part* parameter specifies the i18nLanguage resource properties that the API response will include. Set the parameter value to snippet.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'hl': hl_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.i18nLanguages.list(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.i18nLanguages.listExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new I18nLanguagesApi();
            var part = new array[String](); // array[String] | The *part* parameter specifies the i18nLanguage resource properties that the API response will include. Set the parameter value to snippet.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var hl = hl_example;  // String |  (optional) 

            try
            {
                I18nLanguageListResponse result = apiInstance.youtube.i18nLanguages.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, hl);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling I18nLanguagesApi.youtube.i18nLanguages.list: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiI18nLanguagesApi();
$part = ; // array[String] | The *part* parameter specifies the i18nLanguage resource properties that the API response will include. Set the parameter value to snippet.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$hl = hl_example; // String | 

try {
    $result = $api_instance->youtube.i18nLanguages.list($part, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $hl);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling I18nLanguagesApi->youtube.i18nLanguages.list: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::I18nLanguagesApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::I18nLanguagesApi->new();
my $part = []; # array[String] | The *part* parameter specifies the i18nLanguage resource properties that the API response will include. Set the parameter value to snippet.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $hl = hl_example; # String | 

eval { 
    my $result = $api_instance->youtube.i18nLanguages.list(part => $part, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, hl => $hl);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling I18nLanguagesApi->youtube.i18nLanguages.list: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.I18nLanguagesApi()
part =  # array[String] | The *part* parameter specifies the i18nLanguage resource properties that the API response will include. Set the parameter value to snippet.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
hl = hl_example # String |  (optional)

try: 
    api_response = api_instance.youtube/i18n_languages/list(part, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, hl=hl)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling I18nLanguagesApi->youtube.i18nLanguages.list: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter specifies the i18nLanguage resource properties that the API response will include. Set the parameter value to snippet.
Required
hl
String

Responses

Status: 200 - Successful response


I18nRegions

youtube.i18nRegions.list

Retrieves a list of resources, possibly filtered.


/youtube/v3/i18nRegions

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/i18nRegions?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&hl="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.I18nRegionsApi;

import java.io.File;
import java.util.*;

public class I18nRegionsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        I18nRegionsApi apiInstance = new I18nRegionsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies the i18nRegion resource properties that the API response will include. Set the parameter value to snippet.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String hl = hl_example; // String | 
        try {
            I18nRegionListResponse result = apiInstance.youtube.i18nRegions.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, hl);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling I18nRegionsApi#youtube.i18nRegions.list");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.I18nRegionsApi;

public class I18nRegionsApiExample {

    public static void main(String[] args) {
        I18nRegionsApi apiInstance = new I18nRegionsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies the i18nRegion resource properties that the API response will include. Set the parameter value to snippet.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String hl = hl_example; // String | 
        try {
            I18nRegionListResponse result = apiInstance.youtube.i18nRegions.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, hl);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling I18nRegionsApi#youtube.i18nRegions.list");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter specifies the i18nRegion resource properties that the API response will include. Set the parameter value to snippet.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *hl = hl_example; //  (optional)

I18nRegionsApi *apiInstance = [[I18nRegionsApi alloc] init];

[apiInstance youtube.i18nRegions.listWith:part
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    hl:hl
              completionHandler: ^(I18nRegionListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.I18nRegionsApi()
var part = ; // {{array[String]}} The *part* parameter specifies the i18nRegion resource properties that the API response will include. Set the parameter value to snippet.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'hl': hl_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.i18nRegions.list(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.i18nRegions.listExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new I18nRegionsApi();
            var part = new array[String](); // array[String] | The *part* parameter specifies the i18nRegion resource properties that the API response will include. Set the parameter value to snippet.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var hl = hl_example;  // String |  (optional) 

            try
            {
                I18nRegionListResponse result = apiInstance.youtube.i18nRegions.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, hl);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling I18nRegionsApi.youtube.i18nRegions.list: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiI18nRegionsApi();
$part = ; // array[String] | The *part* parameter specifies the i18nRegion resource properties that the API response will include. Set the parameter value to snippet.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$hl = hl_example; // String | 

try {
    $result = $api_instance->youtube.i18nRegions.list($part, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $hl);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling I18nRegionsApi->youtube.i18nRegions.list: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::I18nRegionsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::I18nRegionsApi->new();
my $part = []; # array[String] | The *part* parameter specifies the i18nRegion resource properties that the API response will include. Set the parameter value to snippet.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $hl = hl_example; # String | 

eval { 
    my $result = $api_instance->youtube.i18nRegions.list(part => $part, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, hl => $hl);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling I18nRegionsApi->youtube.i18nRegions.list: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.I18nRegionsApi()
part =  # array[String] | The *part* parameter specifies the i18nRegion resource properties that the API response will include. Set the parameter value to snippet.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
hl = hl_example # String |  (optional)

try: 
    api_response = api_instance.youtube/i18n_regions/list(part, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, hl=hl)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling I18nRegionsApi->youtube.i18nRegions.list: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter specifies the i18nRegion resource properties that the API response will include. Set the parameter value to snippet.
Required
hl
String

Responses

Status: 200 - Successful response


LiveBroadcasts

youtube.liveBroadcasts.bind

Bind a broadcast to a stream.


/youtube/v3/liveBroadcasts/bind

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/liveBroadcasts/bind?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&id=&part=&onBehalfOfContentOwner=&onBehalfOfContentOwnerChannel=&streamId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LiveBroadcastsApi;

import java.io.File;
import java.util.*;

public class LiveBroadcastsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        LiveBroadcastsApi apiInstance = new LiveBroadcastsApi();
        String id = id_example; // String | Broadcast to bind to the stream
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        String streamId = streamId_example; // String | Stream to bind, if not set unbind the current one.
        try {
            LiveBroadcast result = apiInstance.youtube.liveBroadcasts.bind(id, part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel, streamId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveBroadcastsApi#youtube.liveBroadcasts.bind");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LiveBroadcastsApi;

public class LiveBroadcastsApiExample {

    public static void main(String[] args) {
        LiveBroadcastsApi apiInstance = new LiveBroadcastsApi();
        String id = id_example; // String | Broadcast to bind to the stream
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        String streamId = streamId_example; // String | Stream to bind, if not set unbind the current one.
        try {
            LiveBroadcast result = apiInstance.youtube.liveBroadcasts.bind(id, part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel, streamId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveBroadcastsApi#youtube.liveBroadcasts.bind");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *id = id_example; // Broadcast to bind to the stream
array[String] *part = ; // The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
String *onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)
String *streamId = streamId_example; // Stream to bind, if not set unbind the current one. (optional)

LiveBroadcastsApi *apiInstance = [[LiveBroadcastsApi alloc] init];

[apiInstance youtube.liveBroadcasts.bindWith:id
    part:part
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
    onBehalfOfContentOwnerChannel:onBehalfOfContentOwnerChannel
    streamId:streamId
              completionHandler: ^(LiveBroadcast output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.LiveBroadcastsApi()
var id = id_example; // {{String}} Broadcast to bind to the stream
var part = ; // {{array[String]}} The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example, // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
  'onBehalfOfContentOwnerChannel': onBehalfOfContentOwnerChannel_example, // {{String}} This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
  'streamId': streamId_example // {{String}} Stream to bind, if not set unbind the current one.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.liveBroadcasts.bind(id, part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.liveBroadcasts.bindExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new LiveBroadcastsApi();
            var id = id_example;  // String | Broadcast to bind to the stream
            var part = new array[String](); // array[String] | The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 
            var onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example;  // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional) 
            var streamId = streamId_example;  // String | Stream to bind, if not set unbind the current one. (optional) 

            try
            {
                LiveBroadcast result = apiInstance.youtube.liveBroadcasts.bind(id, part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel, streamId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LiveBroadcastsApi.youtube.liveBroadcasts.bind: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiLiveBroadcastsApi();
$id = id_example; // String | Broadcast to bind to the stream
$part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
$onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
$streamId = streamId_example; // String | Stream to bind, if not set unbind the current one.

try {
    $result = $api_instance->youtube.liveBroadcasts.bind($id, $part, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner, $onBehalfOfContentOwnerChannel, $streamId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LiveBroadcastsApi->youtube.liveBroadcasts.bind: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LiveBroadcastsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::LiveBroadcastsApi->new();
my $id = id_example; # String | Broadcast to bind to the stream
my $part = []; # array[String] | The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
my $onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
my $streamId = streamId_example; # String | Stream to bind, if not set unbind the current one.

eval { 
    my $result = $api_instance->youtube.liveBroadcasts.bind(id => $id, part => $part, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner, onBehalfOfContentOwnerChannel => $onBehalfOfContentOwnerChannel, streamId => $streamId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LiveBroadcastsApi->youtube.liveBroadcasts.bind: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.LiveBroadcastsApi()
id = id_example # String | Broadcast to bind to the stream
part =  # array[String] | The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)
streamId = streamId_example # String | Stream to bind, if not set unbind the current one. (optional)

try: 
    api_response = api_instance.youtube/live_broadcasts/bind(id, part, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner, onBehalfOfContentOwnerChannel=onBehalfOfContentOwnerChannel, streamId=streamId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LiveBroadcastsApi->youtube.liveBroadcasts.bind: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
id*
String
Broadcast to bind to the stream
Required
part*
array[String]
The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.
Required
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
onBehalfOfContentOwnerChannel
String
This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
streamId
String
Stream to bind, if not set unbind the current one.

Responses

Status: 200 - Successful response


youtube.liveBroadcasts.delete

Delete a given broadcast.


/youtube/v3/liveBroadcasts

Usage and SDK Samples

curl -X DELETE\
\
\
"https://youtube.googleapis.com//youtube/v3/liveBroadcasts?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&id=&onBehalfOfContentOwner=&onBehalfOfContentOwnerChannel="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LiveBroadcastsApi;

import java.io.File;
import java.util.*;

public class LiveBroadcastsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        LiveBroadcastsApi apiInstance = new LiveBroadcastsApi();
        String id = id_example; // String | Broadcast to delete.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        try {
            apiInstance.youtube.liveBroadcasts.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveBroadcastsApi#youtube.liveBroadcasts.delete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LiveBroadcastsApi;

public class LiveBroadcastsApiExample {

    public static void main(String[] args) {
        LiveBroadcastsApi apiInstance = new LiveBroadcastsApi();
        String id = id_example; // String | Broadcast to delete.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        try {
            apiInstance.youtube.liveBroadcasts.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveBroadcastsApi#youtube.liveBroadcasts.delete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *id = id_example; // Broadcast to delete.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
String *onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)

LiveBroadcastsApi *apiInstance = [[LiveBroadcastsApi alloc] init];

[apiInstance youtube.liveBroadcasts.deleteWith:id
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
    onBehalfOfContentOwnerChannel:onBehalfOfContentOwnerChannel
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.LiveBroadcastsApi()
var id = id_example; // {{String}} Broadcast to delete.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example, // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
  'onBehalfOfContentOwnerChannel': onBehalfOfContentOwnerChannel_example // {{String}} This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.youtube.liveBroadcasts.delete(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.liveBroadcasts.deleteExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new LiveBroadcastsApi();
            var id = id_example;  // String | Broadcast to delete.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 
            var onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example;  // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional) 

            try
            {
                apiInstance.youtube.liveBroadcasts.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LiveBroadcastsApi.youtube.liveBroadcasts.delete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiLiveBroadcastsApi();
$id = id_example; // String | Broadcast to delete.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
$onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

try {
    $api_instance->youtube.liveBroadcasts.delete($id, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner, $onBehalfOfContentOwnerChannel);
} catch (Exception $e) {
    echo 'Exception when calling LiveBroadcastsApi->youtube.liveBroadcasts.delete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LiveBroadcastsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::LiveBroadcastsApi->new();
my $id = id_example; # String | Broadcast to delete.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
my $onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

eval { 
    $api_instance->youtube.liveBroadcasts.delete(id => $id, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner, onBehalfOfContentOwnerChannel => $onBehalfOfContentOwnerChannel);
};
if ($@) {
    warn "Exception when calling LiveBroadcastsApi->youtube.liveBroadcasts.delete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.LiveBroadcastsApi()
id = id_example # String | Broadcast to delete.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)

try: 
    api_instance.youtube/live_broadcasts/delete(id, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner, onBehalfOfContentOwnerChannel=onBehalfOfContentOwnerChannel)
except ApiException as e:
    print("Exception when calling LiveBroadcastsApi->youtube.liveBroadcasts.delete: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
id*
String
Broadcast to delete.
Required
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
onBehalfOfContentOwnerChannel
String
This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

Responses

Status: 200 - Successful response


youtube.liveBroadcasts.insert

Inserts a new stream for the authenticated user.


/youtube/v3/liveBroadcasts

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://youtube.googleapis.com//youtube/v3/liveBroadcasts?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&onBehalfOfContentOwner=&onBehalfOfContentOwnerChannel="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LiveBroadcastsApi;

import java.io.File;
import java.util.*;

public class LiveBroadcastsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        LiveBroadcastsApi apiInstance = new LiveBroadcastsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status.
        LiveBroadcast body = ; // LiveBroadcast | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        try {
            LiveBroadcast result = apiInstance.youtube.liveBroadcasts.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveBroadcastsApi#youtube.liveBroadcasts.insert");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LiveBroadcastsApi;

public class LiveBroadcastsApiExample {

    public static void main(String[] args) {
        LiveBroadcastsApi apiInstance = new LiveBroadcastsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status.
        LiveBroadcast body = ; // LiveBroadcast | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        try {
            LiveBroadcast result = apiInstance.youtube.liveBroadcasts.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveBroadcastsApi#youtube.liveBroadcasts.insert");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status.
LiveBroadcast *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
String *onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)

LiveBroadcastsApi *apiInstance = [[LiveBroadcastsApi alloc] init];

[apiInstance youtube.liveBroadcasts.insertWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
    onBehalfOfContentOwnerChannel:onBehalfOfContentOwnerChannel
              completionHandler: ^(LiveBroadcast output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.LiveBroadcastsApi()
var part = ; // {{array[String]}} The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status.
var opts = { 
  'body':  // {{LiveBroadcast}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
  'onBehalfOfContentOwnerChannel': onBehalfOfContentOwnerChannel_example // {{String}} This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.liveBroadcasts.insert(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.liveBroadcasts.insertExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new LiveBroadcastsApi();
            var part = new array[String](); // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status.
            var body = new LiveBroadcast(); // LiveBroadcast |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 
            var onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example;  // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional) 

            try
            {
                LiveBroadcast result = apiInstance.youtube.liveBroadcasts.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LiveBroadcastsApi.youtube.liveBroadcasts.insert: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiLiveBroadcastsApi();
$part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status.
$body = ; // LiveBroadcast | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
$onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

try {
    $result = $api_instance->youtube.liveBroadcasts.insert($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner, $onBehalfOfContentOwnerChannel);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LiveBroadcastsApi->youtube.liveBroadcasts.insert: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LiveBroadcastsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::LiveBroadcastsApi->new();
my $part = []; # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status.
my $body = WWW::SwaggerClient::Object::LiveBroadcast->new(); # LiveBroadcast | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
my $onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

eval { 
    my $result = $api_instance->youtube.liveBroadcasts.insert(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner, onBehalfOfContentOwnerChannel => $onBehalfOfContentOwnerChannel);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LiveBroadcastsApi->youtube.liveBroadcasts.insert: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.LiveBroadcastsApi()
part =  # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status.
body =  # LiveBroadcast |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)

try: 
    api_response = api_instance.youtube/live_broadcasts/insert(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner, onBehalfOfContentOwnerChannel=onBehalfOfContentOwnerChannel)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LiveBroadcastsApi->youtube.liveBroadcasts.insert: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status.
Required
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
onBehalfOfContentOwnerChannel
String
This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

Responses

Status: 200 - Successful response


youtube.liveBroadcasts.list

Retrieve the list of broadcasts associated with the given channel.


/youtube/v3/liveBroadcasts

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/liveBroadcasts?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&broadcastStatus=&broadcastType=&id=&maxResults=&mine=&onBehalfOfContentOwner=&onBehalfOfContentOwnerChannel=&pageToken="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LiveBroadcastsApi;

import java.io.File;
import java.util.*;

public class LiveBroadcastsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        LiveBroadcastsApi apiInstance = new LiveBroadcastsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, status and statistics.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String broadcastStatus = broadcastStatus_example; // String | Return broadcasts with a certain status, e.g. active broadcasts.
        String broadcastType = broadcastType_example; // String | Return only broadcasts with the selected type.
        array[String] id = ; // array[String] | Return broadcasts with the given ids from Stubby or Apiary.
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        Boolean mine = true; // Boolean | 
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        try {
            LiveBroadcastListResponse result = apiInstance.youtube.liveBroadcasts.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, broadcastStatus, broadcastType, id, maxResults, mine, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveBroadcastsApi#youtube.liveBroadcasts.list");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LiveBroadcastsApi;

public class LiveBroadcastsApiExample {

    public static void main(String[] args) {
        LiveBroadcastsApi apiInstance = new LiveBroadcastsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, status and statistics.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String broadcastStatus = broadcastStatus_example; // String | Return broadcasts with a certain status, e.g. active broadcasts.
        String broadcastType = broadcastType_example; // String | Return only broadcasts with the selected type.
        array[String] id = ; // array[String] | Return broadcasts with the given ids from Stubby or Apiary.
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        Boolean mine = true; // Boolean | 
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        try {
            LiveBroadcastListResponse result = apiInstance.youtube.liveBroadcasts.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, broadcastStatus, broadcastType, id, maxResults, mine, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveBroadcastsApi#youtube.liveBroadcasts.list");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, status and statistics.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *broadcastStatus = broadcastStatus_example; // Return broadcasts with a certain status, e.g. active broadcasts. (optional)
String *broadcastType = broadcastType_example; // Return only broadcasts with the selected type. (optional)
array[String] *id = ; // Return broadcasts with the given ids from Stubby or Apiary. (optional)
Integer *maxResults = 56; // The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
Boolean *mine = true; //  (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
String *onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)
String *pageToken = pageToken_example; // The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)

LiveBroadcastsApi *apiInstance = [[LiveBroadcastsApi alloc] init];

[apiInstance youtube.liveBroadcasts.listWith:part
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    broadcastStatus:broadcastStatus
    broadcastType:broadcastType
    id:id
    maxResults:maxResults
    mine:mine
    onBehalfOfContentOwner:onBehalfOfContentOwner
    onBehalfOfContentOwnerChannel:onBehalfOfContentOwnerChannel
    pageToken:pageToken
              completionHandler: ^(LiveBroadcastListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.LiveBroadcastsApi()
var part = ; // {{array[String]}} The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, status and statistics.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'broadcastStatus': broadcastStatus_example, // {{String}} Return broadcasts with a certain status, e.g. active broadcasts.
  'broadcastType': broadcastType_example, // {{String}} Return only broadcasts with the selected type.
  'id': , // {{array[String]}} Return broadcasts with the given ids from Stubby or Apiary.
  'maxResults': 56, // {{Integer}} The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
  'mine': true, // {{Boolean}} 
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example, // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
  'onBehalfOfContentOwnerChannel': onBehalfOfContentOwnerChannel_example, // {{String}} This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
  'pageToken': pageToken_example // {{String}} The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.liveBroadcasts.list(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.liveBroadcasts.listExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new LiveBroadcastsApi();
            var part = new array[String](); // array[String] | The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, status and statistics.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var broadcastStatus = broadcastStatus_example;  // String | Return broadcasts with a certain status, e.g. active broadcasts. (optional) 
            var broadcastType = broadcastType_example;  // String | Return only broadcasts with the selected type. (optional) 
            var id = new array[String](); // array[String] | Return broadcasts with the given ids from Stubby or Apiary. (optional) 
            var maxResults = 56;  // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional) 
            var mine = true;  // Boolean |  (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 
            var onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example;  // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional) 
            var pageToken = pageToken_example;  // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional) 

            try
            {
                LiveBroadcastListResponse result = apiInstance.youtube.liveBroadcasts.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, broadcastStatus, broadcastType, id, maxResults, mine, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel, pageToken);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LiveBroadcastsApi.youtube.liveBroadcasts.list: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiLiveBroadcastsApi();
$part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, status and statistics.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$broadcastStatus = broadcastStatus_example; // String | Return broadcasts with a certain status, e.g. active broadcasts.
$broadcastType = broadcastType_example; // String | Return only broadcasts with the selected type.
$id = ; // array[String] | Return broadcasts with the given ids from Stubby or Apiary.
$maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
$mine = true; // Boolean | 
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
$onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
$pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

try {
    $result = $api_instance->youtube.liveBroadcasts.list($part, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $broadcastStatus, $broadcastType, $id, $maxResults, $mine, $onBehalfOfContentOwner, $onBehalfOfContentOwnerChannel, $pageToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LiveBroadcastsApi->youtube.liveBroadcasts.list: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LiveBroadcastsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::LiveBroadcastsApi->new();
my $part = []; # array[String] | The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, status and statistics.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $broadcastStatus = broadcastStatus_example; # String | Return broadcasts with a certain status, e.g. active broadcasts.
my $broadcastType = broadcastType_example; # String | Return only broadcasts with the selected type.
my $id = []; # array[String] | Return broadcasts with the given ids from Stubby or Apiary.
my $maxResults = 56; # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
my $mine = true; # Boolean | 
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
my $onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
my $pageToken = pageToken_example; # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

eval { 
    my $result = $api_instance->youtube.liveBroadcasts.list(part => $part, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, broadcastStatus => $broadcastStatus, broadcastType => $broadcastType, id => $id, maxResults => $maxResults, mine => $mine, onBehalfOfContentOwner => $onBehalfOfContentOwner, onBehalfOfContentOwnerChannel => $onBehalfOfContentOwnerChannel, pageToken => $pageToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LiveBroadcastsApi->youtube.liveBroadcasts.list: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.LiveBroadcastsApi()
part =  # array[String] | The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, status and statistics.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
broadcastStatus = broadcastStatus_example # String | Return broadcasts with a certain status, e.g. active broadcasts. (optional)
broadcastType = broadcastType_example # String | Return only broadcasts with the selected type. (optional)
id =  # array[String] | Return broadcasts with the given ids from Stubby or Apiary. (optional)
maxResults = 56 # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
mine = true # Boolean |  (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)
pageToken = pageToken_example # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)

try: 
    api_response = api_instance.youtube/live_broadcasts/list(part, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, broadcastStatus=broadcastStatus, broadcastType=broadcastType, id=id, maxResults=maxResults, mine=mine, onBehalfOfContentOwner=onBehalfOfContentOwner, onBehalfOfContentOwnerChannel=onBehalfOfContentOwnerChannel, pageToken=pageToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LiveBroadcastsApi->youtube.liveBroadcasts.list: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, status and statistics.
Required
broadcastStatus
String
Return broadcasts with a certain status, e.g. active broadcasts.
broadcastType
String
Return only broadcasts with the selected type.
id
array[String]
Return broadcasts with the given ids from Stubby or Apiary.
maxResults
Integer
The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
mine
Boolean
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
onBehalfOfContentOwnerChannel
String
This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
pageToken
String
The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

Responses

Status: 200 - Successful response


youtube.liveBroadcasts.transition

Transition a broadcast to a given status.


/youtube/v3/liveBroadcasts/transition

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/liveBroadcasts/transition?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&broadcastStatus=&id=&part=&onBehalfOfContentOwner=&onBehalfOfContentOwnerChannel="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LiveBroadcastsApi;

import java.io.File;
import java.util.*;

public class LiveBroadcastsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        LiveBroadcastsApi apiInstance = new LiveBroadcastsApi();
        String broadcastStatus = broadcastStatus_example; // String | The status to which the broadcast is going to transition.
        String id = id_example; // String | Broadcast to transition.
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        try {
            LiveBroadcast result = apiInstance.youtube.liveBroadcasts.transition(broadcastStatus, id, part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveBroadcastsApi#youtube.liveBroadcasts.transition");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LiveBroadcastsApi;

public class LiveBroadcastsApiExample {

    public static void main(String[] args) {
        LiveBroadcastsApi apiInstance = new LiveBroadcastsApi();
        String broadcastStatus = broadcastStatus_example; // String | The status to which the broadcast is going to transition.
        String id = id_example; // String | Broadcast to transition.
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        try {
            LiveBroadcast result = apiInstance.youtube.liveBroadcasts.transition(broadcastStatus, id, part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveBroadcastsApi#youtube.liveBroadcasts.transition");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *broadcastStatus = broadcastStatus_example; // The status to which the broadcast is going to transition.
String *id = id_example; // Broadcast to transition.
array[String] *part = ; // The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
String *onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)

LiveBroadcastsApi *apiInstance = [[LiveBroadcastsApi alloc] init];

[apiInstance youtube.liveBroadcasts.transitionWith:broadcastStatus
    id:id
    part:part
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
    onBehalfOfContentOwnerChannel:onBehalfOfContentOwnerChannel
              completionHandler: ^(LiveBroadcast output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.LiveBroadcastsApi()
var broadcastStatus = broadcastStatus_example; // {{String}} The status to which the broadcast is going to transition.
var id = id_example; // {{String}} Broadcast to transition.
var part = ; // {{array[String]}} The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example, // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
  'onBehalfOfContentOwnerChannel': onBehalfOfContentOwnerChannel_example // {{String}} This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.liveBroadcasts.transition(broadcastStatus, id, part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.liveBroadcasts.transitionExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new LiveBroadcastsApi();
            var broadcastStatus = broadcastStatus_example;  // String | The status to which the broadcast is going to transition.
            var id = id_example;  // String | Broadcast to transition.
            var part = new array[String](); // array[String] | The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 
            var onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example;  // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional) 

            try
            {
                LiveBroadcast result = apiInstance.youtube.liveBroadcasts.transition(broadcastStatus, id, part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LiveBroadcastsApi.youtube.liveBroadcasts.transition: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiLiveBroadcastsApi();
$broadcastStatus = broadcastStatus_example; // String | The status to which the broadcast is going to transition.
$id = id_example; // String | Broadcast to transition.
$part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
$onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

try {
    $result = $api_instance->youtube.liveBroadcasts.transition($broadcastStatus, $id, $part, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner, $onBehalfOfContentOwnerChannel);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LiveBroadcastsApi->youtube.liveBroadcasts.transition: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LiveBroadcastsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::LiveBroadcastsApi->new();
my $broadcastStatus = broadcastStatus_example; # String | The status to which the broadcast is going to transition.
my $id = id_example; # String | Broadcast to transition.
my $part = []; # array[String] | The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
my $onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

eval { 
    my $result = $api_instance->youtube.liveBroadcasts.transition(broadcastStatus => $broadcastStatus, id => $id, part => $part, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner, onBehalfOfContentOwnerChannel => $onBehalfOfContentOwnerChannel);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LiveBroadcastsApi->youtube.liveBroadcasts.transition: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.LiveBroadcastsApi()
broadcastStatus = broadcastStatus_example # String | The status to which the broadcast is going to transition.
id = id_example # String | Broadcast to transition.
part =  # array[String] | The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)

try: 
    api_response = api_instance.youtube/live_broadcasts/transition(broadcastStatus, id, part, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner, onBehalfOfContentOwnerChannel=onBehalfOfContentOwnerChannel)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LiveBroadcastsApi->youtube.liveBroadcasts.transition: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
broadcastStatus*
String
The status to which the broadcast is going to transition.
Required
id*
String
Broadcast to transition.
Required
part*
array[String]
The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.
Required
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
onBehalfOfContentOwnerChannel
String
This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

Responses

Status: 200 - Successful response


youtube.liveBroadcasts.update

Updates an existing broadcast for the authenticated user.


/youtube/v3/liveBroadcasts

Usage and SDK Samples

curl -X PUT\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://youtube.googleapis.com//youtube/v3/liveBroadcasts?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&onBehalfOfContentOwner=&onBehalfOfContentOwnerChannel="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LiveBroadcastsApi;

import java.io.File;
import java.util.*;

public class LiveBroadcastsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        LiveBroadcastsApi apiInstance = new LiveBroadcastsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a broadcast's privacy status is defined in the status part. As such, if your request is updating a private or unlisted broadcast, and the request's part parameter value includes the status part, the broadcast's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the broadcast will revert to the default privacy setting.
        LiveBroadcast body = ; // LiveBroadcast | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        try {
            LiveBroadcast result = apiInstance.youtube.liveBroadcasts.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveBroadcastsApi#youtube.liveBroadcasts.update");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LiveBroadcastsApi;

public class LiveBroadcastsApiExample {

    public static void main(String[] args) {
        LiveBroadcastsApi apiInstance = new LiveBroadcastsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a broadcast's privacy status is defined in the status part. As such, if your request is updating a private or unlisted broadcast, and the request's part parameter value includes the status part, the broadcast's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the broadcast will revert to the default privacy setting.
        LiveBroadcast body = ; // LiveBroadcast | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        try {
            LiveBroadcast result = apiInstance.youtube.liveBroadcasts.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveBroadcastsApi#youtube.liveBroadcasts.update");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a broadcast's privacy status is defined in the status part. As such, if your request is updating a private or unlisted broadcast, and the request's part parameter value includes the status part, the broadcast's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the broadcast will revert to the default privacy setting.
LiveBroadcast *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
String *onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)

LiveBroadcastsApi *apiInstance = [[LiveBroadcastsApi alloc] init];

[apiInstance youtube.liveBroadcasts.updateWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
    onBehalfOfContentOwnerChannel:onBehalfOfContentOwnerChannel
              completionHandler: ^(LiveBroadcast output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.LiveBroadcastsApi()
var part = ; // {{array[String]}} The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a broadcast's privacy status is defined in the status part. As such, if your request is updating a private or unlisted broadcast, and the request's part parameter value includes the status part, the broadcast's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the broadcast will revert to the default privacy setting.
var opts = { 
  'body':  // {{LiveBroadcast}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
  'onBehalfOfContentOwnerChannel': onBehalfOfContentOwnerChannel_example // {{String}} This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.liveBroadcasts.update(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.liveBroadcasts.updateExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new LiveBroadcastsApi();
            var part = new array[String](); // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a broadcast's privacy status is defined in the status part. As such, if your request is updating a private or unlisted broadcast, and the request's part parameter value includes the status part, the broadcast's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the broadcast will revert to the default privacy setting.
            var body = new LiveBroadcast(); // LiveBroadcast |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 
            var onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example;  // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional) 

            try
            {
                LiveBroadcast result = apiInstance.youtube.liveBroadcasts.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LiveBroadcastsApi.youtube.liveBroadcasts.update: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiLiveBroadcastsApi();
$part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a broadcast's privacy status is defined in the status part. As such, if your request is updating a private or unlisted broadcast, and the request's part parameter value includes the status part, the broadcast's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the broadcast will revert to the default privacy setting.
$body = ; // LiveBroadcast | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
$onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

try {
    $result = $api_instance->youtube.liveBroadcasts.update($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner, $onBehalfOfContentOwnerChannel);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LiveBroadcastsApi->youtube.liveBroadcasts.update: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LiveBroadcastsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::LiveBroadcastsApi->new();
my $part = []; # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a broadcast's privacy status is defined in the status part. As such, if your request is updating a private or unlisted broadcast, and the request's part parameter value includes the status part, the broadcast's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the broadcast will revert to the default privacy setting.
my $body = WWW::SwaggerClient::Object::LiveBroadcast->new(); # LiveBroadcast | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
my $onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

eval { 
    my $result = $api_instance->youtube.liveBroadcasts.update(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner, onBehalfOfContentOwnerChannel => $onBehalfOfContentOwnerChannel);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LiveBroadcastsApi->youtube.liveBroadcasts.update: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.LiveBroadcastsApi()
part =  # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a broadcast's privacy status is defined in the status part. As such, if your request is updating a private or unlisted broadcast, and the request's part parameter value includes the status part, the broadcast's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the broadcast will revert to the default privacy setting.
body =  # LiveBroadcast |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)

try: 
    api_response = api_instance.youtube/live_broadcasts/update(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner, onBehalfOfContentOwnerChannel=onBehalfOfContentOwnerChannel)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LiveBroadcastsApi->youtube.liveBroadcasts.update: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a broadcast's privacy status is defined in the status part. As such, if your request is updating a private or unlisted broadcast, and the request's part parameter value includes the status part, the broadcast's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the broadcast will revert to the default privacy setting.
Required
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
onBehalfOfContentOwnerChannel
String
This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

Responses

Status: 200 - Successful response


LiveChatBans

youtube.liveChatBans.delete

Deletes a chat ban.


/youtube/v3/liveChat/bans

Usage and SDK Samples

curl -X DELETE\
\
\
"https://youtube.googleapis.com//youtube/v3/liveChat/bans?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LiveChatBansApi;

import java.io.File;
import java.util.*;

public class LiveChatBansApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        LiveChatBansApi apiInstance = new LiveChatBansApi();
        String id = id_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            apiInstance.youtube.liveChatBans.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveChatBansApi#youtube.liveChatBans.delete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LiveChatBansApi;

public class LiveChatBansApiExample {

    public static void main(String[] args) {
        LiveChatBansApi apiInstance = new LiveChatBansApi();
        String id = id_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            apiInstance.youtube.liveChatBans.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveChatBansApi#youtube.liveChatBans.delete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *id = id_example; // 
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

LiveChatBansApi *apiInstance = [[LiveChatBansApi alloc] init];

[apiInstance youtube.liveChatBans.deleteWith:id
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.LiveChatBansApi()
var id = id_example; // {{String}} 
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.youtube.liveChatBans.delete(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.liveChatBans.deleteExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new LiveChatBansApi();
            var id = id_example;  // String | 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 

            try
            {
                apiInstance.youtube.liveChatBans.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LiveChatBansApi.youtube.liveChatBans.delete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiLiveChatBansApi();
$id = id_example; // String | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").

try {
    $api_instance->youtube.liveChatBans.delete($id, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType);
} catch (Exception $e) {
    echo 'Exception when calling LiveChatBansApi->youtube.liveChatBans.delete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LiveChatBansApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::LiveChatBansApi->new();
my $id = id_example; # String | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").

eval { 
    $api_instance->youtube.liveChatBans.delete(id => $id, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType);
};
if ($@) {
    warn "Exception when calling LiveChatBansApi->youtube.liveChatBans.delete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.LiveChatBansApi()
id = id_example # String | 
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

try: 
    api_instance.youtube/live_chat_bans/delete(id, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType)
except ApiException as e:
    print("Exception when calling LiveChatBansApi->youtube.liveChatBans.delete: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
id*
String
Required

Responses

Status: 200 - Successful response


youtube.liveChatBans.insert

Inserts a new resource into this collection.


/youtube/v3/liveChat/bans

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://youtube.googleapis.com//youtube/v3/liveChat/bans?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LiveChatBansApi;

import java.io.File;
import java.util.*;

public class LiveChatBansApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        LiveChatBansApi apiInstance = new LiveChatBansApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet.
        LiveChatBan body = ; // LiveChatBan | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            LiveChatBan result = apiInstance.youtube.liveChatBans.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveChatBansApi#youtube.liveChatBans.insert");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LiveChatBansApi;

public class LiveChatBansApiExample {

    public static void main(String[] args) {
        LiveChatBansApi apiInstance = new LiveChatBansApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet.
        LiveChatBan body = ; // LiveChatBan | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            LiveChatBan result = apiInstance.youtube.liveChatBans.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveChatBansApi#youtube.liveChatBans.insert");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet.
LiveChatBan *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

LiveChatBansApi *apiInstance = [[LiveChatBansApi alloc] init];

[apiInstance youtube.liveChatBans.insertWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
              completionHandler: ^(LiveChatBan output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.LiveChatBansApi()
var part = ; // {{array[String]}} The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet.
var opts = { 
  'body':  // {{LiveChatBan}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.liveChatBans.insert(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.liveChatBans.insertExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new LiveChatBansApi();
            var part = new array[String](); // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet.
            var body = new LiveChatBan(); // LiveChatBan |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 

            try
            {
                LiveChatBan result = apiInstance.youtube.liveChatBans.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LiveChatBansApi.youtube.liveChatBans.insert: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiLiveChatBansApi();
$part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet.
$body = ; // LiveChatBan | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").

try {
    $result = $api_instance->youtube.liveChatBans.insert($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LiveChatBansApi->youtube.liveChatBans.insert: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LiveChatBansApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::LiveChatBansApi->new();
my $part = []; # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet.
my $body = WWW::SwaggerClient::Object::LiveChatBan->new(); # LiveChatBan | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").

eval { 
    my $result = $api_instance->youtube.liveChatBans.insert(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LiveChatBansApi->youtube.liveChatBans.insert: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.LiveChatBansApi()
part =  # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet.
body =  # LiveChatBan |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

try: 
    api_response = api_instance.youtube/live_chat_bans/insert(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LiveChatBansApi->youtube.liveChatBans.insert: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet.
Required

Responses

Status: 200 - Successful response


LiveChatMessages

youtube.liveChatMessages.delete

Deletes a chat message.


/youtube/v3/liveChat/messages

Usage and SDK Samples

curl -X DELETE\
\
\
"https://youtube.googleapis.com//youtube/v3/liveChat/messages?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LiveChatMessagesApi;

import java.io.File;
import java.util.*;

public class LiveChatMessagesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        LiveChatMessagesApi apiInstance = new LiveChatMessagesApi();
        String id = id_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            apiInstance.youtube.liveChatMessages.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveChatMessagesApi#youtube.liveChatMessages.delete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LiveChatMessagesApi;

public class LiveChatMessagesApiExample {

    public static void main(String[] args) {
        LiveChatMessagesApi apiInstance = new LiveChatMessagesApi();
        String id = id_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            apiInstance.youtube.liveChatMessages.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveChatMessagesApi#youtube.liveChatMessages.delete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *id = id_example; // 
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

LiveChatMessagesApi *apiInstance = [[LiveChatMessagesApi alloc] init];

[apiInstance youtube.liveChatMessages.deleteWith:id
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.LiveChatMessagesApi()
var id = id_example; // {{String}} 
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.youtube.liveChatMessages.delete(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.liveChatMessages.deleteExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new LiveChatMessagesApi();
            var id = id_example;  // String | 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 

            try
            {
                apiInstance.youtube.liveChatMessages.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LiveChatMessagesApi.youtube.liveChatMessages.delete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiLiveChatMessagesApi();
$id = id_example; // String | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").

try {
    $api_instance->youtube.liveChatMessages.delete($id, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType);
} catch (Exception $e) {
    echo 'Exception when calling LiveChatMessagesApi->youtube.liveChatMessages.delete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LiveChatMessagesApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::LiveChatMessagesApi->new();
my $id = id_example; # String | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").

eval { 
    $api_instance->youtube.liveChatMessages.delete(id => $id, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType);
};
if ($@) {
    warn "Exception when calling LiveChatMessagesApi->youtube.liveChatMessages.delete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.LiveChatMessagesApi()
id = id_example # String | 
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

try: 
    api_instance.youtube/live_chat_messages/delete(id, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType)
except ApiException as e:
    print("Exception when calling LiveChatMessagesApi->youtube.liveChatMessages.delete: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
id*
String
Required

Responses

Status: 200 - Successful response


youtube.liveChatMessages.insert

Inserts a new resource into this collection.


/youtube/v3/liveChat/messages

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://youtube.googleapis.com//youtube/v3/liveChat/messages?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LiveChatMessagesApi;

import java.io.File;
import java.util.*;

public class LiveChatMessagesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        LiveChatMessagesApi apiInstance = new LiveChatMessagesApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes. It identifies the properties that the write operation will set as well as the properties that the API response will include. Set the parameter value to snippet.
        LiveChatMessage body = ; // LiveChatMessage | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            LiveChatMessage result = apiInstance.youtube.liveChatMessages.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveChatMessagesApi#youtube.liveChatMessages.insert");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LiveChatMessagesApi;

public class LiveChatMessagesApiExample {

    public static void main(String[] args) {
        LiveChatMessagesApi apiInstance = new LiveChatMessagesApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes. It identifies the properties that the write operation will set as well as the properties that the API response will include. Set the parameter value to snippet.
        LiveChatMessage body = ; // LiveChatMessage | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            LiveChatMessage result = apiInstance.youtube.liveChatMessages.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveChatMessagesApi#youtube.liveChatMessages.insert");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter serves two purposes. It identifies the properties that the write operation will set as well as the properties that the API response will include. Set the parameter value to snippet.
LiveChatMessage *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

LiveChatMessagesApi *apiInstance = [[LiveChatMessagesApi alloc] init];

[apiInstance youtube.liveChatMessages.insertWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
              completionHandler: ^(LiveChatMessage output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.LiveChatMessagesApi()
var part = ; // {{array[String]}} The *part* parameter serves two purposes. It identifies the properties that the write operation will set as well as the properties that the API response will include. Set the parameter value to snippet.
var opts = { 
  'body':  // {{LiveChatMessage}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.liveChatMessages.insert(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.liveChatMessages.insertExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new LiveChatMessagesApi();
            var part = new array[String](); // array[String] | The *part* parameter serves two purposes. It identifies the properties that the write operation will set as well as the properties that the API response will include. Set the parameter value to snippet.
            var body = new LiveChatMessage(); // LiveChatMessage |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 

            try
            {
                LiveChatMessage result = apiInstance.youtube.liveChatMessages.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LiveChatMessagesApi.youtube.liveChatMessages.insert: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiLiveChatMessagesApi();
$part = ; // array[String] | The *part* parameter serves two purposes. It identifies the properties that the write operation will set as well as the properties that the API response will include. Set the parameter value to snippet.
$body = ; // LiveChatMessage | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").

try {
    $result = $api_instance->youtube.liveChatMessages.insert($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LiveChatMessagesApi->youtube.liveChatMessages.insert: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LiveChatMessagesApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::LiveChatMessagesApi->new();
my $part = []; # array[String] | The *part* parameter serves two purposes. It identifies the properties that the write operation will set as well as the properties that the API response will include. Set the parameter value to snippet.
my $body = WWW::SwaggerClient::Object::LiveChatMessage->new(); # LiveChatMessage | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").

eval { 
    my $result = $api_instance->youtube.liveChatMessages.insert(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LiveChatMessagesApi->youtube.liveChatMessages.insert: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.LiveChatMessagesApi()
part =  # array[String] | The *part* parameter serves two purposes. It identifies the properties that the write operation will set as well as the properties that the API response will include. Set the parameter value to snippet.
body =  # LiveChatMessage |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

try: 
    api_response = api_instance.youtube/live_chat_messages/insert(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LiveChatMessagesApi->youtube.liveChatMessages.insert: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter serves two purposes. It identifies the properties that the write operation will set as well as the properties that the API response will include. Set the parameter value to snippet.
Required

Responses

Status: 200 - Successful response


youtube.liveChatMessages.list

Retrieves a list of resources, possibly filtered.


/youtube/v3/liveChat/messages

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/liveChat/messages?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&liveChatId=&part=&hl=&maxResults=&pageToken=&profileImageSize="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LiveChatMessagesApi;

import java.io.File;
import java.util.*;

public class LiveChatMessagesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        LiveChatMessagesApi apiInstance = new LiveChatMessagesApi();
        String liveChatId = liveChatId_example; // String | The id of the live chat for which comments should be returned.
        array[String] part = ; // array[String] | The *part* parameter specifies the liveChatComment resource parts that the API response will include. Supported values are id and snippet.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String hl = hl_example; // String | Specifies the localization language in which the system messages should be returned.
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken property identify other pages that could be retrieved.
        Integer profileImageSize = 56; // Integer | Specifies the size of the profile image that should be returned for each user.
        try {
            LiveChatMessageListResponse result = apiInstance.youtube.liveChatMessages.list(liveChatId, part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, hl, maxResults, pageToken, profileImageSize);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveChatMessagesApi#youtube.liveChatMessages.list");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LiveChatMessagesApi;

public class LiveChatMessagesApiExample {

    public static void main(String[] args) {
        LiveChatMessagesApi apiInstance = new LiveChatMessagesApi();
        String liveChatId = liveChatId_example; // String | The id of the live chat for which comments should be returned.
        array[String] part = ; // array[String] | The *part* parameter specifies the liveChatComment resource parts that the API response will include. Supported values are id and snippet.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String hl = hl_example; // String | Specifies the localization language in which the system messages should be returned.
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken property identify other pages that could be retrieved.
        Integer profileImageSize = 56; // Integer | Specifies the size of the profile image that should be returned for each user.
        try {
            LiveChatMessageListResponse result = apiInstance.youtube.liveChatMessages.list(liveChatId, part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, hl, maxResults, pageToken, profileImageSize);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveChatMessagesApi#youtube.liveChatMessages.list");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *liveChatId = liveChatId_example; // The id of the live chat for which comments should be returned.
array[String] *part = ; // The *part* parameter specifies the liveChatComment resource parts that the API response will include. Supported values are id and snippet.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *hl = hl_example; // Specifies the localization language in which the system messages should be returned. (optional)
Integer *maxResults = 56; // The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
String *pageToken = pageToken_example; // The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken property identify other pages that could be retrieved. (optional)
Integer *profileImageSize = 56; // Specifies the size of the profile image that should be returned for each user. (optional)

LiveChatMessagesApi *apiInstance = [[LiveChatMessagesApi alloc] init];

[apiInstance youtube.liveChatMessages.listWith:liveChatId
    part:part
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    hl:hl
    maxResults:maxResults
    pageToken:pageToken
    profileImageSize:profileImageSize
              completionHandler: ^(LiveChatMessageListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.LiveChatMessagesApi()
var liveChatId = liveChatId_example; // {{String}} The id of the live chat for which comments should be returned.
var part = ; // {{array[String]}} The *part* parameter specifies the liveChatComment resource parts that the API response will include. Supported values are id and snippet.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'hl': hl_example, // {{String}} Specifies the localization language in which the system messages should be returned.
  'maxResults': 56, // {{Integer}} The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
  'pageToken': pageToken_example, // {{String}} The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken property identify other pages that could be retrieved.
  'profileImageSize': 56 // {{Integer}} Specifies the size of the profile image that should be returned for each user.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.liveChatMessages.list(liveChatId, part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.liveChatMessages.listExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new LiveChatMessagesApi();
            var liveChatId = liveChatId_example;  // String | The id of the live chat for which comments should be returned.
            var part = new array[String](); // array[String] | The *part* parameter specifies the liveChatComment resource parts that the API response will include. Supported values are id and snippet.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var hl = hl_example;  // String | Specifies the localization language in which the system messages should be returned. (optional) 
            var maxResults = 56;  // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional) 
            var pageToken = pageToken_example;  // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken property identify other pages that could be retrieved. (optional) 
            var profileImageSize = 56;  // Integer | Specifies the size of the profile image that should be returned for each user. (optional) 

            try
            {
                LiveChatMessageListResponse result = apiInstance.youtube.liveChatMessages.list(liveChatId, part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, hl, maxResults, pageToken, profileImageSize);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LiveChatMessagesApi.youtube.liveChatMessages.list: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiLiveChatMessagesApi();
$liveChatId = liveChatId_example; // String | The id of the live chat for which comments should be returned.
$part = ; // array[String] | The *part* parameter specifies the liveChatComment resource parts that the API response will include. Supported values are id and snippet.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$hl = hl_example; // String | Specifies the localization language in which the system messages should be returned.
$maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
$pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken property identify other pages that could be retrieved.
$profileImageSize = 56; // Integer | Specifies the size of the profile image that should be returned for each user.

try {
    $result = $api_instance->youtube.liveChatMessages.list($liveChatId, $part, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $hl, $maxResults, $pageToken, $profileImageSize);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LiveChatMessagesApi->youtube.liveChatMessages.list: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LiveChatMessagesApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::LiveChatMessagesApi->new();
my $liveChatId = liveChatId_example; # String | The id of the live chat for which comments should be returned.
my $part = []; # array[String] | The *part* parameter specifies the liveChatComment resource parts that the API response will include. Supported values are id and snippet.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $hl = hl_example; # String | Specifies the localization language in which the system messages should be returned.
my $maxResults = 56; # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
my $pageToken = pageToken_example; # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken property identify other pages that could be retrieved.
my $profileImageSize = 56; # Integer | Specifies the size of the profile image that should be returned for each user.

eval { 
    my $result = $api_instance->youtube.liveChatMessages.list(liveChatId => $liveChatId, part => $part, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, hl => $hl, maxResults => $maxResults, pageToken => $pageToken, profileImageSize => $profileImageSize);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LiveChatMessagesApi->youtube.liveChatMessages.list: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.LiveChatMessagesApi()
liveChatId = liveChatId_example # String | The id of the live chat for which comments should be returned.
part =  # array[String] | The *part* parameter specifies the liveChatComment resource parts that the API response will include. Supported values are id and snippet.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
hl = hl_example # String | Specifies the localization language in which the system messages should be returned. (optional)
maxResults = 56 # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
pageToken = pageToken_example # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken property identify other pages that could be retrieved. (optional)
profileImageSize = 56 # Integer | Specifies the size of the profile image that should be returned for each user. (optional)

try: 
    api_response = api_instance.youtube/live_chat_messages/list(liveChatId, part, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, hl=hl, maxResults=maxResults, pageToken=pageToken, profileImageSize=profileImageSize)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LiveChatMessagesApi->youtube.liveChatMessages.list: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
liveChatId*
String
The id of the live chat for which comments should be returned.
Required
part*
array[String]
The *part* parameter specifies the liveChatComment resource parts that the API response will include. Supported values are id and snippet.
Required
hl
String
Specifies the localization language in which the system messages should be returned.
maxResults
Integer
The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
pageToken
String
The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken property identify other pages that could be retrieved.
profileImageSize
Integer
Specifies the size of the profile image that should be returned for each user.

Responses

Status: 200 - Successful response


LiveChatModerators

youtube.liveChatModerators.delete

Deletes a chat moderator.


/youtube/v3/liveChat/moderators

Usage and SDK Samples

curl -X DELETE\
\
\
"https://youtube.googleapis.com//youtube/v3/liveChat/moderators?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LiveChatModeratorsApi;

import java.io.File;
import java.util.*;

public class LiveChatModeratorsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        LiveChatModeratorsApi apiInstance = new LiveChatModeratorsApi();
        String id = id_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            apiInstance.youtube.liveChatModerators.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveChatModeratorsApi#youtube.liveChatModerators.delete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LiveChatModeratorsApi;

public class LiveChatModeratorsApiExample {

    public static void main(String[] args) {
        LiveChatModeratorsApi apiInstance = new LiveChatModeratorsApi();
        String id = id_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            apiInstance.youtube.liveChatModerators.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveChatModeratorsApi#youtube.liveChatModerators.delete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *id = id_example; // 
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

LiveChatModeratorsApi *apiInstance = [[LiveChatModeratorsApi alloc] init];

[apiInstance youtube.liveChatModerators.deleteWith:id
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.LiveChatModeratorsApi()
var id = id_example; // {{String}} 
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.youtube.liveChatModerators.delete(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.liveChatModerators.deleteExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new LiveChatModeratorsApi();
            var id = id_example;  // String | 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 

            try
            {
                apiInstance.youtube.liveChatModerators.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LiveChatModeratorsApi.youtube.liveChatModerators.delete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiLiveChatModeratorsApi();
$id = id_example; // String | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").

try {
    $api_instance->youtube.liveChatModerators.delete($id, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType);
} catch (Exception $e) {
    echo 'Exception when calling LiveChatModeratorsApi->youtube.liveChatModerators.delete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LiveChatModeratorsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::LiveChatModeratorsApi->new();
my $id = id_example; # String | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").

eval { 
    $api_instance->youtube.liveChatModerators.delete(id => $id, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType);
};
if ($@) {
    warn "Exception when calling LiveChatModeratorsApi->youtube.liveChatModerators.delete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.LiveChatModeratorsApi()
id = id_example # String | 
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

try: 
    api_instance.youtube/live_chat_moderators/delete(id, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType)
except ApiException as e:
    print("Exception when calling LiveChatModeratorsApi->youtube.liveChatModerators.delete: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
id*
String
Required

Responses

Status: 200 - Successful response


youtube.liveChatModerators.insert

Inserts a new resource into this collection.


/youtube/v3/liveChat/moderators

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://youtube.googleapis.com//youtube/v3/liveChat/moderators?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LiveChatModeratorsApi;

import java.io.File;
import java.util.*;

public class LiveChatModeratorsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        LiveChatModeratorsApi apiInstance = new LiveChatModeratorsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet.
        LiveChatModerator body = ; // LiveChatModerator | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            LiveChatModerator result = apiInstance.youtube.liveChatModerators.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveChatModeratorsApi#youtube.liveChatModerators.insert");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LiveChatModeratorsApi;

public class LiveChatModeratorsApiExample {

    public static void main(String[] args) {
        LiveChatModeratorsApi apiInstance = new LiveChatModeratorsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet.
        LiveChatModerator body = ; // LiveChatModerator | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            LiveChatModerator result = apiInstance.youtube.liveChatModerators.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveChatModeratorsApi#youtube.liveChatModerators.insert");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet.
LiveChatModerator *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

LiveChatModeratorsApi *apiInstance = [[LiveChatModeratorsApi alloc] init];

[apiInstance youtube.liveChatModerators.insertWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
              completionHandler: ^(LiveChatModerator output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.LiveChatModeratorsApi()
var part = ; // {{array[String]}} The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet.
var opts = { 
  'body':  // {{LiveChatModerator}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.liveChatModerators.insert(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.liveChatModerators.insertExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new LiveChatModeratorsApi();
            var part = new array[String](); // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet.
            var body = new LiveChatModerator(); // LiveChatModerator |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 

            try
            {
                LiveChatModerator result = apiInstance.youtube.liveChatModerators.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LiveChatModeratorsApi.youtube.liveChatModerators.insert: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiLiveChatModeratorsApi();
$part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet.
$body = ; // LiveChatModerator | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").

try {
    $result = $api_instance->youtube.liveChatModerators.insert($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LiveChatModeratorsApi->youtube.liveChatModerators.insert: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LiveChatModeratorsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::LiveChatModeratorsApi->new();
my $part = []; # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet.
my $body = WWW::SwaggerClient::Object::LiveChatModerator->new(); # LiveChatModerator | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").

eval { 
    my $result = $api_instance->youtube.liveChatModerators.insert(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LiveChatModeratorsApi->youtube.liveChatModerators.insert: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.LiveChatModeratorsApi()
part =  # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet.
body =  # LiveChatModerator |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

try: 
    api_response = api_instance.youtube/live_chat_moderators/insert(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LiveChatModeratorsApi->youtube.liveChatModerators.insert: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet.
Required

Responses

Status: 200 - Successful response


youtube.liveChatModerators.list

Retrieves a list of resources, possibly filtered.


/youtube/v3/liveChat/moderators

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/liveChat/moderators?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&liveChatId=&part=&maxResults=&pageToken="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LiveChatModeratorsApi;

import java.io.File;
import java.util.*;

public class LiveChatModeratorsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        LiveChatModeratorsApi apiInstance = new LiveChatModeratorsApi();
        String liveChatId = liveChatId_example; // String | The id of the live chat for which moderators should be returned.
        array[String] part = ; // array[String] | The *part* parameter specifies the liveChatModerator resource parts that the API response will include. Supported values are id and snippet.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        try {
            LiveChatModeratorListResponse result = apiInstance.youtube.liveChatModerators.list(liveChatId, part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, maxResults, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveChatModeratorsApi#youtube.liveChatModerators.list");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LiveChatModeratorsApi;

public class LiveChatModeratorsApiExample {

    public static void main(String[] args) {
        LiveChatModeratorsApi apiInstance = new LiveChatModeratorsApi();
        String liveChatId = liveChatId_example; // String | The id of the live chat for which moderators should be returned.
        array[String] part = ; // array[String] | The *part* parameter specifies the liveChatModerator resource parts that the API response will include. Supported values are id and snippet.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        try {
            LiveChatModeratorListResponse result = apiInstance.youtube.liveChatModerators.list(liveChatId, part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, maxResults, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveChatModeratorsApi#youtube.liveChatModerators.list");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *liveChatId = liveChatId_example; // The id of the live chat for which moderators should be returned.
array[String] *part = ; // The *part* parameter specifies the liveChatModerator resource parts that the API response will include. Supported values are id and snippet.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
Integer *maxResults = 56; // The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
String *pageToken = pageToken_example; // The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)

LiveChatModeratorsApi *apiInstance = [[LiveChatModeratorsApi alloc] init];

[apiInstance youtube.liveChatModerators.listWith:liveChatId
    part:part
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    maxResults:maxResults
    pageToken:pageToken
              completionHandler: ^(LiveChatModeratorListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.LiveChatModeratorsApi()
var liveChatId = liveChatId_example; // {{String}} The id of the live chat for which moderators should be returned.
var part = ; // {{array[String]}} The *part* parameter specifies the liveChatModerator resource parts that the API response will include. Supported values are id and snippet.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'maxResults': 56, // {{Integer}} The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
  'pageToken': pageToken_example // {{String}} The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.liveChatModerators.list(liveChatId, part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.liveChatModerators.listExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new LiveChatModeratorsApi();
            var liveChatId = liveChatId_example;  // String | The id of the live chat for which moderators should be returned.
            var part = new array[String](); // array[String] | The *part* parameter specifies the liveChatModerator resource parts that the API response will include. Supported values are id and snippet.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var maxResults = 56;  // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional) 
            var pageToken = pageToken_example;  // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional) 

            try
            {
                LiveChatModeratorListResponse result = apiInstance.youtube.liveChatModerators.list(liveChatId, part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, maxResults, pageToken);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LiveChatModeratorsApi.youtube.liveChatModerators.list: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiLiveChatModeratorsApi();
$liveChatId = liveChatId_example; // String | The id of the live chat for which moderators should be returned.
$part = ; // array[String] | The *part* parameter specifies the liveChatModerator resource parts that the API response will include. Supported values are id and snippet.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
$pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

try {
    $result = $api_instance->youtube.liveChatModerators.list($liveChatId, $part, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $maxResults, $pageToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LiveChatModeratorsApi->youtube.liveChatModerators.list: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LiveChatModeratorsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::LiveChatModeratorsApi->new();
my $liveChatId = liveChatId_example; # String | The id of the live chat for which moderators should be returned.
my $part = []; # array[String] | The *part* parameter specifies the liveChatModerator resource parts that the API response will include. Supported values are id and snippet.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $maxResults = 56; # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
my $pageToken = pageToken_example; # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

eval { 
    my $result = $api_instance->youtube.liveChatModerators.list(liveChatId => $liveChatId, part => $part, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, maxResults => $maxResults, pageToken => $pageToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LiveChatModeratorsApi->youtube.liveChatModerators.list: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.LiveChatModeratorsApi()
liveChatId = liveChatId_example # String | The id of the live chat for which moderators should be returned.
part =  # array[String] | The *part* parameter specifies the liveChatModerator resource parts that the API response will include. Supported values are id and snippet.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
maxResults = 56 # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
pageToken = pageToken_example # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)

try: 
    api_response = api_instance.youtube/live_chat_moderators/list(liveChatId, part, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, maxResults=maxResults, pageToken=pageToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LiveChatModeratorsApi->youtube.liveChatModerators.list: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
liveChatId*
String
The id of the live chat for which moderators should be returned.
Required
part*
array[String]
The *part* parameter specifies the liveChatModerator resource parts that the API response will include. Supported values are id and snippet.
Required
maxResults
Integer
The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
pageToken
String
The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

Responses

Status: 200 - Successful response


LiveStreams

youtube.liveStreams.delete

Deletes an existing stream for the authenticated user.


/youtube/v3/liveStreams

Usage and SDK Samples

curl -X DELETE\
\
\
"https://youtube.googleapis.com//youtube/v3/liveStreams?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&id=&onBehalfOfContentOwner=&onBehalfOfContentOwnerChannel="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LiveStreamsApi;

import java.io.File;
import java.util.*;

public class LiveStreamsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        LiveStreamsApi apiInstance = new LiveStreamsApi();
        String id = id_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        try {
            apiInstance.youtube.liveStreams.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveStreamsApi#youtube.liveStreams.delete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LiveStreamsApi;

public class LiveStreamsApiExample {

    public static void main(String[] args) {
        LiveStreamsApi apiInstance = new LiveStreamsApi();
        String id = id_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        try {
            apiInstance.youtube.liveStreams.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveStreamsApi#youtube.liveStreams.delete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *id = id_example; // 
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
String *onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)

LiveStreamsApi *apiInstance = [[LiveStreamsApi alloc] init];

[apiInstance youtube.liveStreams.deleteWith:id
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
    onBehalfOfContentOwnerChannel:onBehalfOfContentOwnerChannel
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.LiveStreamsApi()
var id = id_example; // {{String}} 
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example, // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
  'onBehalfOfContentOwnerChannel': onBehalfOfContentOwnerChannel_example // {{String}} This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.youtube.liveStreams.delete(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.liveStreams.deleteExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new LiveStreamsApi();
            var id = id_example;  // String | 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 
            var onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example;  // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional) 

            try
            {
                apiInstance.youtube.liveStreams.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LiveStreamsApi.youtube.liveStreams.delete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiLiveStreamsApi();
$id = id_example; // String | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
$onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

try {
    $api_instance->youtube.liveStreams.delete($id, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner, $onBehalfOfContentOwnerChannel);
} catch (Exception $e) {
    echo 'Exception when calling LiveStreamsApi->youtube.liveStreams.delete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LiveStreamsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::LiveStreamsApi->new();
my $id = id_example; # String | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
my $onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

eval { 
    $api_instance->youtube.liveStreams.delete(id => $id, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner, onBehalfOfContentOwnerChannel => $onBehalfOfContentOwnerChannel);
};
if ($@) {
    warn "Exception when calling LiveStreamsApi->youtube.liveStreams.delete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.LiveStreamsApi()
id = id_example # String | 
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)

try: 
    api_instance.youtube/live_streams/delete(id, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner, onBehalfOfContentOwnerChannel=onBehalfOfContentOwnerChannel)
except ApiException as e:
    print("Exception when calling LiveStreamsApi->youtube.liveStreams.delete: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
id*
String
Required
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
onBehalfOfContentOwnerChannel
String
This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

Responses

Status: 200 - Successful response


youtube.liveStreams.insert

Inserts a new stream for the authenticated user.


/youtube/v3/liveStreams

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://youtube.googleapis.com//youtube/v3/liveStreams?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&onBehalfOfContentOwner=&onBehalfOfContentOwnerChannel="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LiveStreamsApi;

import java.io.File;
import java.util.*;

public class LiveStreamsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        LiveStreamsApi apiInstance = new LiveStreamsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, cdn, content_details, and status.
        LiveStream body = ; // LiveStream | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        try {
            LiveStream result = apiInstance.youtube.liveStreams.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveStreamsApi#youtube.liveStreams.insert");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LiveStreamsApi;

public class LiveStreamsApiExample {

    public static void main(String[] args) {
        LiveStreamsApi apiInstance = new LiveStreamsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, cdn, content_details, and status.
        LiveStream body = ; // LiveStream | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        try {
            LiveStream result = apiInstance.youtube.liveStreams.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveStreamsApi#youtube.liveStreams.insert");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, cdn, content_details, and status.
LiveStream *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
String *onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)

LiveStreamsApi *apiInstance = [[LiveStreamsApi alloc] init];

[apiInstance youtube.liveStreams.insertWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
    onBehalfOfContentOwnerChannel:onBehalfOfContentOwnerChannel
              completionHandler: ^(LiveStream output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.LiveStreamsApi()
var part = ; // {{array[String]}} The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, cdn, content_details, and status.
var opts = { 
  'body':  // {{LiveStream}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
  'onBehalfOfContentOwnerChannel': onBehalfOfContentOwnerChannel_example // {{String}} This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.liveStreams.insert(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.liveStreams.insertExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new LiveStreamsApi();
            var part = new array[String](); // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, cdn, content_details, and status.
            var body = new LiveStream(); // LiveStream |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 
            var onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example;  // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional) 

            try
            {
                LiveStream result = apiInstance.youtube.liveStreams.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LiveStreamsApi.youtube.liveStreams.insert: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiLiveStreamsApi();
$part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, cdn, content_details, and status.
$body = ; // LiveStream | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
$onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

try {
    $result = $api_instance->youtube.liveStreams.insert($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner, $onBehalfOfContentOwnerChannel);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LiveStreamsApi->youtube.liveStreams.insert: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LiveStreamsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::LiveStreamsApi->new();
my $part = []; # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, cdn, content_details, and status.
my $body = WWW::SwaggerClient::Object::LiveStream->new(); # LiveStream | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
my $onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

eval { 
    my $result = $api_instance->youtube.liveStreams.insert(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner, onBehalfOfContentOwnerChannel => $onBehalfOfContentOwnerChannel);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LiveStreamsApi->youtube.liveStreams.insert: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.LiveStreamsApi()
part =  # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, cdn, content_details, and status.
body =  # LiveStream |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)

try: 
    api_response = api_instance.youtube/live_streams/insert(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner, onBehalfOfContentOwnerChannel=onBehalfOfContentOwnerChannel)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LiveStreamsApi->youtube.liveStreams.insert: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, cdn, content_details, and status.
Required
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
onBehalfOfContentOwnerChannel
String
This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

Responses

Status: 200 - Successful response


youtube.liveStreams.list

Retrieve the list of streams associated with the given channel. --


/youtube/v3/liveStreams

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/liveStreams?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&id=&maxResults=&mine=&onBehalfOfContentOwner=&onBehalfOfContentOwnerChannel=&pageToken="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LiveStreamsApi;

import java.io.File;
import java.util.*;

public class LiveStreamsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        LiveStreamsApi apiInstance = new LiveStreamsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more liveStream resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, cdn, and status.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        array[String] id = ; // array[String] | Return LiveStreams with the given ids from Stubby or Apiary.
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        Boolean mine = true; // Boolean | 
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        try {
            LiveStreamListResponse result = apiInstance.youtube.liveStreams.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, id, maxResults, mine, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveStreamsApi#youtube.liveStreams.list");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LiveStreamsApi;

public class LiveStreamsApiExample {

    public static void main(String[] args) {
        LiveStreamsApi apiInstance = new LiveStreamsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more liveStream resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, cdn, and status.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        array[String] id = ; // array[String] | Return LiveStreams with the given ids from Stubby or Apiary.
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        Boolean mine = true; // Boolean | 
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        try {
            LiveStreamListResponse result = apiInstance.youtube.liveStreams.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, id, maxResults, mine, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveStreamsApi#youtube.liveStreams.list");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter specifies a comma-separated list of one or more liveStream resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, cdn, and status.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
array[String] *id = ; // Return LiveStreams with the given ids from Stubby or Apiary. (optional)
Integer *maxResults = 56; // The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
Boolean *mine = true; //  (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
String *onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)
String *pageToken = pageToken_example; // The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)

LiveStreamsApi *apiInstance = [[LiveStreamsApi alloc] init];

[apiInstance youtube.liveStreams.listWith:part
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    id:id
    maxResults:maxResults
    mine:mine
    onBehalfOfContentOwner:onBehalfOfContentOwner
    onBehalfOfContentOwnerChannel:onBehalfOfContentOwnerChannel
    pageToken:pageToken
              completionHandler: ^(LiveStreamListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.LiveStreamsApi()
var part = ; // {{array[String]}} The *part* parameter specifies a comma-separated list of one or more liveStream resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, cdn, and status.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'id': , // {{array[String]}} Return LiveStreams with the given ids from Stubby or Apiary.
  'maxResults': 56, // {{Integer}} The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
  'mine': true, // {{Boolean}} 
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example, // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
  'onBehalfOfContentOwnerChannel': onBehalfOfContentOwnerChannel_example, // {{String}} This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
  'pageToken': pageToken_example // {{String}} The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.liveStreams.list(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.liveStreams.listExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new LiveStreamsApi();
            var part = new array[String](); // array[String] | The *part* parameter specifies a comma-separated list of one or more liveStream resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, cdn, and status.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var id = new array[String](); // array[String] | Return LiveStreams with the given ids from Stubby or Apiary. (optional) 
            var maxResults = 56;  // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional) 
            var mine = true;  // Boolean |  (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 
            var onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example;  // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional) 
            var pageToken = pageToken_example;  // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional) 

            try
            {
                LiveStreamListResponse result = apiInstance.youtube.liveStreams.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, id, maxResults, mine, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel, pageToken);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LiveStreamsApi.youtube.liveStreams.list: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiLiveStreamsApi();
$part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more liveStream resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, cdn, and status.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$id = ; // array[String] | Return LiveStreams with the given ids from Stubby or Apiary.
$maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
$mine = true; // Boolean | 
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
$onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
$pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

try {
    $result = $api_instance->youtube.liveStreams.list($part, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $id, $maxResults, $mine, $onBehalfOfContentOwner, $onBehalfOfContentOwnerChannel, $pageToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LiveStreamsApi->youtube.liveStreams.list: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LiveStreamsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::LiveStreamsApi->new();
my $part = []; # array[String] | The *part* parameter specifies a comma-separated list of one or more liveStream resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, cdn, and status.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $id = []; # array[String] | Return LiveStreams with the given ids from Stubby or Apiary.
my $maxResults = 56; # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
my $mine = true; # Boolean | 
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
my $onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
my $pageToken = pageToken_example; # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

eval { 
    my $result = $api_instance->youtube.liveStreams.list(part => $part, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, id => $id, maxResults => $maxResults, mine => $mine, onBehalfOfContentOwner => $onBehalfOfContentOwner, onBehalfOfContentOwnerChannel => $onBehalfOfContentOwnerChannel, pageToken => $pageToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LiveStreamsApi->youtube.liveStreams.list: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.LiveStreamsApi()
part =  # array[String] | The *part* parameter specifies a comma-separated list of one or more liveStream resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, cdn, and status.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
id =  # array[String] | Return LiveStreams with the given ids from Stubby or Apiary. (optional)
maxResults = 56 # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
mine = true # Boolean |  (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)
pageToken = pageToken_example # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)

try: 
    api_response = api_instance.youtube/live_streams/list(part, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, id=id, maxResults=maxResults, mine=mine, onBehalfOfContentOwner=onBehalfOfContentOwner, onBehalfOfContentOwnerChannel=onBehalfOfContentOwnerChannel, pageToken=pageToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LiveStreamsApi->youtube.liveStreams.list: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter specifies a comma-separated list of one or more liveStream resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, cdn, and status.
Required
id
array[String]
Return LiveStreams with the given ids from Stubby or Apiary.
maxResults
Integer
The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
mine
Boolean
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
onBehalfOfContentOwnerChannel
String
This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
pageToken
String
The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

Responses

Status: 200 - Successful response


youtube.liveStreams.update

Updates an existing stream for the authenticated user.


/youtube/v3/liveStreams

Usage and SDK Samples

curl -X PUT\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://youtube.googleapis.com//youtube/v3/liveStreams?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&onBehalfOfContentOwner=&onBehalfOfContentOwnerChannel="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LiveStreamsApi;

import java.io.File;
import java.util.*;

public class LiveStreamsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        LiveStreamsApi apiInstance = new LiveStreamsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, cdn, and status. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. If the request body does not specify a value for a mutable property, the existing value for that property will be removed.
        LiveStream body = ; // LiveStream | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        try {
            LiveStream result = apiInstance.youtube.liveStreams.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveStreamsApi#youtube.liveStreams.update");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LiveStreamsApi;

public class LiveStreamsApiExample {

    public static void main(String[] args) {
        LiveStreamsApi apiInstance = new LiveStreamsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, cdn, and status. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. If the request body does not specify a value for a mutable property, the existing value for that property will be removed.
        LiveStream body = ; // LiveStream | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        try {
            LiveStream result = apiInstance.youtube.liveStreams.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveStreamsApi#youtube.liveStreams.update");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, cdn, and status. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. If the request body does not specify a value for a mutable property, the existing value for that property will be removed.
LiveStream *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
String *onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)

LiveStreamsApi *apiInstance = [[LiveStreamsApi alloc] init];

[apiInstance youtube.liveStreams.updateWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
    onBehalfOfContentOwnerChannel:onBehalfOfContentOwnerChannel
              completionHandler: ^(LiveStream output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.LiveStreamsApi()
var part = ; // {{array[String]}} The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, cdn, and status. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. If the request body does not specify a value for a mutable property, the existing value for that property will be removed.
var opts = { 
  'body':  // {{LiveStream}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
  'onBehalfOfContentOwnerChannel': onBehalfOfContentOwnerChannel_example // {{String}} This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.liveStreams.update(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.liveStreams.updateExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new LiveStreamsApi();
            var part = new array[String](); // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, cdn, and status. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. If the request body does not specify a value for a mutable property, the existing value for that property will be removed.
            var body = new LiveStream(); // LiveStream |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 
            var onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example;  // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional) 

            try
            {
                LiveStream result = apiInstance.youtube.liveStreams.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LiveStreamsApi.youtube.liveStreams.update: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiLiveStreamsApi();
$part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, cdn, and status. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. If the request body does not specify a value for a mutable property, the existing value for that property will be removed.
$body = ; // LiveStream | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
$onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

try {
    $result = $api_instance->youtube.liveStreams.update($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner, $onBehalfOfContentOwnerChannel);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LiveStreamsApi->youtube.liveStreams.update: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LiveStreamsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::LiveStreamsApi->new();
my $part = []; # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, cdn, and status. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. If the request body does not specify a value for a mutable property, the existing value for that property will be removed.
my $body = WWW::SwaggerClient::Object::LiveStream->new(); # LiveStream | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
my $onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

eval { 
    my $result = $api_instance->youtube.liveStreams.update(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner, onBehalfOfContentOwnerChannel => $onBehalfOfContentOwnerChannel);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LiveStreamsApi->youtube.liveStreams.update: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.LiveStreamsApi()
part =  # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, cdn, and status. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. If the request body does not specify a value for a mutable property, the existing value for that property will be removed.
body =  # LiveStream |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)

try: 
    api_response = api_instance.youtube/live_streams/update(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner, onBehalfOfContentOwnerChannel=onBehalfOfContentOwnerChannel)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LiveStreamsApi->youtube.liveStreams.update: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, cdn, and status. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. If the request body does not specify a value for a mutable property, the existing value for that property will be removed.
Required
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
onBehalfOfContentOwnerChannel
String
This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

Responses

Status: 200 - Successful response


Members

youtube.members.list

Retrieves a list of members that match the request criteria for a channel.


/youtube/v3/members

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/members?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&filterByMemberChannelId=&hasAccessToLevel=&maxResults=&mode=&pageToken="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MembersApi;

import java.io.File;
import java.util.*;

public class MembersApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        MembersApi apiInstance = new MembersApi();
        array[String] part = ; // array[String] | The *part* parameter specifies the member resource parts that the API response will include. Set the parameter value to snippet.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String filterByMemberChannelId = filterByMemberChannelId_example; // String | Comma separated list of channel IDs. Only data about members that are part of this list will be included in the response.
        String hasAccessToLevel = hasAccessToLevel_example; // String | Filter members in the results set to the ones that have access to a level.
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        String mode = mode_example; // String | Parameter that specifies which channel members to return.
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        try {
            MemberListResponse result = apiInstance.youtube.members.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, filterByMemberChannelId, hasAccessToLevel, maxResults, mode, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MembersApi#youtube.members.list");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MembersApi;

public class MembersApiExample {

    public static void main(String[] args) {
        MembersApi apiInstance = new MembersApi();
        array[String] part = ; // array[String] | The *part* parameter specifies the member resource parts that the API response will include. Set the parameter value to snippet.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String filterByMemberChannelId = filterByMemberChannelId_example; // String | Comma separated list of channel IDs. Only data about members that are part of this list will be included in the response.
        String hasAccessToLevel = hasAccessToLevel_example; // String | Filter members in the results set to the ones that have access to a level.
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        String mode = mode_example; // String | Parameter that specifies which channel members to return.
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        try {
            MemberListResponse result = apiInstance.youtube.members.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, filterByMemberChannelId, hasAccessToLevel, maxResults, mode, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MembersApi#youtube.members.list");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter specifies the member resource parts that the API response will include. Set the parameter value to snippet.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *filterByMemberChannelId = filterByMemberChannelId_example; // Comma separated list of channel IDs. Only data about members that are part of this list will be included in the response. (optional)
String *hasAccessToLevel = hasAccessToLevel_example; // Filter members in the results set to the ones that have access to a level. (optional)
Integer *maxResults = 56; // The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
String *mode = mode_example; // Parameter that specifies which channel members to return. (optional)
String *pageToken = pageToken_example; // The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)

MembersApi *apiInstance = [[MembersApi alloc] init];

[apiInstance youtube.members.listWith:part
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    filterByMemberChannelId:filterByMemberChannelId
    hasAccessToLevel:hasAccessToLevel
    maxResults:maxResults
    mode:mode
    pageToken:pageToken
              completionHandler: ^(MemberListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.MembersApi()
var part = ; // {{array[String]}} The *part* parameter specifies the member resource parts that the API response will include. Set the parameter value to snippet.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'filterByMemberChannelId': filterByMemberChannelId_example, // {{String}} Comma separated list of channel IDs. Only data about members that are part of this list will be included in the response.
  'hasAccessToLevel': hasAccessToLevel_example, // {{String}} Filter members in the results set to the ones that have access to a level.
  'maxResults': 56, // {{Integer}} The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
  'mode': mode_example, // {{String}} Parameter that specifies which channel members to return.
  'pageToken': pageToken_example // {{String}} The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.members.list(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.members.listExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MembersApi();
            var part = new array[String](); // array[String] | The *part* parameter specifies the member resource parts that the API response will include. Set the parameter value to snippet.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var filterByMemberChannelId = filterByMemberChannelId_example;  // String | Comma separated list of channel IDs. Only data about members that are part of this list will be included in the response. (optional) 
            var hasAccessToLevel = hasAccessToLevel_example;  // String | Filter members in the results set to the ones that have access to a level. (optional) 
            var maxResults = 56;  // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional) 
            var mode = mode_example;  // String | Parameter that specifies which channel members to return. (optional) 
            var pageToken = pageToken_example;  // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional) 

            try
            {
                MemberListResponse result = apiInstance.youtube.members.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, filterByMemberChannelId, hasAccessToLevel, maxResults, mode, pageToken);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MembersApi.youtube.members.list: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiMembersApi();
$part = ; // array[String] | The *part* parameter specifies the member resource parts that the API response will include. Set the parameter value to snippet.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$filterByMemberChannelId = filterByMemberChannelId_example; // String | Comma separated list of channel IDs. Only data about members that are part of this list will be included in the response.
$hasAccessToLevel = hasAccessToLevel_example; // String | Filter members in the results set to the ones that have access to a level.
$maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
$mode = mode_example; // String | Parameter that specifies which channel members to return.
$pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

try {
    $result = $api_instance->youtube.members.list($part, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $filterByMemberChannelId, $hasAccessToLevel, $maxResults, $mode, $pageToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MembersApi->youtube.members.list: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MembersApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MembersApi->new();
my $part = []; # array[String] | The *part* parameter specifies the member resource parts that the API response will include. Set the parameter value to snippet.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $filterByMemberChannelId = filterByMemberChannelId_example; # String | Comma separated list of channel IDs. Only data about members that are part of this list will be included in the response.
my $hasAccessToLevel = hasAccessToLevel_example; # String | Filter members in the results set to the ones that have access to a level.
my $maxResults = 56; # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
my $mode = mode_example; # String | Parameter that specifies which channel members to return.
my $pageToken = pageToken_example; # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

eval { 
    my $result = $api_instance->youtube.members.list(part => $part, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, filterByMemberChannelId => $filterByMemberChannelId, hasAccessToLevel => $hasAccessToLevel, maxResults => $maxResults, mode => $mode, pageToken => $pageToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MembersApi->youtube.members.list: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MembersApi()
part =  # array[String] | The *part* parameter specifies the member resource parts that the API response will include. Set the parameter value to snippet.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
filterByMemberChannelId = filterByMemberChannelId_example # String | Comma separated list of channel IDs. Only data about members that are part of this list will be included in the response. (optional)
hasAccessToLevel = hasAccessToLevel_example # String | Filter members in the results set to the ones that have access to a level. (optional)
maxResults = 56 # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
mode = mode_example # String | Parameter that specifies which channel members to return. (optional)
pageToken = pageToken_example # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)

try: 
    api_response = api_instance.youtube/members/list(part, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, filterByMemberChannelId=filterByMemberChannelId, hasAccessToLevel=hasAccessToLevel, maxResults=maxResults, mode=mode, pageToken=pageToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MembersApi->youtube.members.list: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter specifies the member resource parts that the API response will include. Set the parameter value to snippet.
Required
filterByMemberChannelId
String
Comma separated list of channel IDs. Only data about members that are part of this list will be included in the response.
hasAccessToLevel
String
Filter members in the results set to the ones that have access to a level.
maxResults
Integer
The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
mode
String
Parameter that specifies which channel members to return.
pageToken
String
The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

Responses

Status: 200 - Successful response


MembershipsLevels

youtube.membershipsLevels.list

Retrieves a list of all pricing levels offered by a creator to the fans.


/youtube/v3/membershipsLevels

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/membershipsLevels?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MembershipsLevelsApi;

import java.io.File;
import java.util.*;

public class MembershipsLevelsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        MembershipsLevelsApi apiInstance = new MembershipsLevelsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies the membershipsLevel resource parts that the API response will include. Supported values are id and snippet.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            MembershipsLevelListResponse result = apiInstance.youtube.membershipsLevels.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MembershipsLevelsApi#youtube.membershipsLevels.list");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MembershipsLevelsApi;

public class MembershipsLevelsApiExample {

    public static void main(String[] args) {
        MembershipsLevelsApi apiInstance = new MembershipsLevelsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies the membershipsLevel resource parts that the API response will include. Supported values are id and snippet.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            MembershipsLevelListResponse result = apiInstance.youtube.membershipsLevels.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MembershipsLevelsApi#youtube.membershipsLevels.list");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter specifies the membershipsLevel resource parts that the API response will include. Supported values are id and snippet.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

MembershipsLevelsApi *apiInstance = [[MembershipsLevelsApi alloc] init];

[apiInstance youtube.membershipsLevels.listWith:part
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
              completionHandler: ^(MembershipsLevelListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.MembershipsLevelsApi()
var part = ; // {{array[String]}} The *part* parameter specifies the membershipsLevel resource parts that the API response will include. Supported values are id and snippet.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.membershipsLevels.list(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.membershipsLevels.listExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MembershipsLevelsApi();
            var part = new array[String](); // array[String] | The *part* parameter specifies the membershipsLevel resource parts that the API response will include. Supported values are id and snippet.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 

            try
            {
                MembershipsLevelListResponse result = apiInstance.youtube.membershipsLevels.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MembershipsLevelsApi.youtube.membershipsLevels.list: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiMembershipsLevelsApi();
$part = ; // array[String] | The *part* parameter specifies the membershipsLevel resource parts that the API response will include. Supported values are id and snippet.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").

try {
    $result = $api_instance->youtube.membershipsLevels.list($part, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MembershipsLevelsApi->youtube.membershipsLevels.list: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MembershipsLevelsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MembershipsLevelsApi->new();
my $part = []; # array[String] | The *part* parameter specifies the membershipsLevel resource parts that the API response will include. Supported values are id and snippet.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").

eval { 
    my $result = $api_instance->youtube.membershipsLevels.list(part => $part, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MembershipsLevelsApi->youtube.membershipsLevels.list: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MembershipsLevelsApi()
part =  # array[String] | The *part* parameter specifies the membershipsLevel resource parts that the API response will include. Supported values are id and snippet.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

try: 
    api_response = api_instance.youtube/memberships_levels/list(part, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MembershipsLevelsApi->youtube.membershipsLevels.list: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter specifies the membershipsLevel resource parts that the API response will include. Supported values are id and snippet.
Required

Responses

Status: 200 - Successful response


PlaylistItems

youtube.playlistItems.delete

Deletes a resource.


/youtube/v3/playlistItems

Usage and SDK Samples

curl -X DELETE\
\
\
"https://youtube.googleapis.com//youtube/v3/playlistItems?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&id=&onBehalfOfContentOwner="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlaylistItemsApi;

import java.io.File;
import java.util.*;

public class PlaylistItemsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        PlaylistItemsApi apiInstance = new PlaylistItemsApi();
        String id = id_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            apiInstance.youtube.playlistItems.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlaylistItemsApi#youtube.playlistItems.delete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PlaylistItemsApi;

public class PlaylistItemsApiExample {

    public static void main(String[] args) {
        PlaylistItemsApi apiInstance = new PlaylistItemsApi();
        String id = id_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            apiInstance.youtube.playlistItems.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlaylistItemsApi#youtube.playlistItems.delete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *id = id_example; // 
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

PlaylistItemsApi *apiInstance = [[PlaylistItemsApi alloc] init];

[apiInstance youtube.playlistItems.deleteWith:id
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.PlaylistItemsApi()
var id = id_example; // {{String}} 
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.youtube.playlistItems.delete(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.playlistItems.deleteExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PlaylistItemsApi();
            var id = id_example;  // String | 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 

            try
            {
                apiInstance.youtube.playlistItems.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PlaylistItemsApi.youtube.playlistItems.delete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPlaylistItemsApi();
$id = id_example; // String | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

try {
    $api_instance->youtube.playlistItems.delete($id, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner);
} catch (Exception $e) {
    echo 'Exception when calling PlaylistItemsApi->youtube.playlistItems.delete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PlaylistItemsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PlaylistItemsApi->new();
my $id = id_example; # String | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

eval { 
    $api_instance->youtube.playlistItems.delete(id => $id, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner);
};
if ($@) {
    warn "Exception when calling PlaylistItemsApi->youtube.playlistItems.delete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PlaylistItemsApi()
id = id_example # String | 
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

try: 
    api_instance.youtube/playlist_items/delete(id, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner)
except ApiException as e:
    print("Exception when calling PlaylistItemsApi->youtube.playlistItems.delete: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
id*
String
Required
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

Responses

Status: 200 - Successful response


youtube.playlistItems.insert

Inserts a new resource into this collection.


/youtube/v3/playlistItems

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://youtube.googleapis.com//youtube/v3/playlistItems?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&onBehalfOfContentOwner="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlaylistItemsApi;

import java.io.File;
import java.util.*;

public class PlaylistItemsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        PlaylistItemsApi apiInstance = new PlaylistItemsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
        PlaylistItem body = ; // PlaylistItem | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            PlaylistItem result = apiInstance.youtube.playlistItems.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlaylistItemsApi#youtube.playlistItems.insert");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PlaylistItemsApi;

public class PlaylistItemsApiExample {

    public static void main(String[] args) {
        PlaylistItemsApi apiInstance = new PlaylistItemsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
        PlaylistItem body = ; // PlaylistItem | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            PlaylistItem result = apiInstance.youtube.playlistItems.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlaylistItemsApi#youtube.playlistItems.insert");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
PlaylistItem *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

PlaylistItemsApi *apiInstance = [[PlaylistItemsApi alloc] init];

[apiInstance youtube.playlistItems.insertWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
              completionHandler: ^(PlaylistItem output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.PlaylistItemsApi()
var part = ; // {{array[String]}} The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
var opts = { 
  'body':  // {{PlaylistItem}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.playlistItems.insert(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.playlistItems.insertExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PlaylistItemsApi();
            var part = new array[String](); // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
            var body = new PlaylistItem(); // PlaylistItem |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 

            try
            {
                PlaylistItem result = apiInstance.youtube.playlistItems.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PlaylistItemsApi.youtube.playlistItems.insert: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPlaylistItemsApi();
$part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
$body = ; // PlaylistItem | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

try {
    $result = $api_instance->youtube.playlistItems.insert($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PlaylistItemsApi->youtube.playlistItems.insert: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PlaylistItemsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PlaylistItemsApi->new();
my $part = []; # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
my $body = WWW::SwaggerClient::Object::PlaylistItem->new(); # PlaylistItem | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

eval { 
    my $result = $api_instance->youtube.playlistItems.insert(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PlaylistItemsApi->youtube.playlistItems.insert: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PlaylistItemsApi()
part =  # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
body =  # PlaylistItem |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

try: 
    api_response = api_instance.youtube/playlist_items/insert(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PlaylistItemsApi->youtube.playlistItems.insert: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
Required
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

Responses

Status: 200 - Successful response


youtube.playlistItems.list

Retrieves a list of resources, possibly filtered.


/youtube/v3/playlistItems

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/playlistItems?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&id=&maxResults=&onBehalfOfContentOwner=&pageToken=&playlistId=&videoId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlaylistItemsApi;

import java.io.File;
import java.util.*;

public class PlaylistItemsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        PlaylistItemsApi apiInstance = new PlaylistItemsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more playlistItem resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlistItem resource, the snippet property contains numerous fields, including the title, description, position, and resourceId properties. As such, if you set *part=snippet*, the API response will contain all of those properties.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        array[String] id = ; // array[String] | 
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        String playlistId = playlistId_example; // String | Return the playlist items within the given playlist.
        String videoId = videoId_example; // String | Return the playlist items associated with the given video ID.
        try {
            PlaylistItemListResponse result = apiInstance.youtube.playlistItems.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, id, maxResults, onBehalfOfContentOwner, pageToken, playlistId, videoId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlaylistItemsApi#youtube.playlistItems.list");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PlaylistItemsApi;

public class PlaylistItemsApiExample {

    public static void main(String[] args) {
        PlaylistItemsApi apiInstance = new PlaylistItemsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more playlistItem resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlistItem resource, the snippet property contains numerous fields, including the title, description, position, and resourceId properties. As such, if you set *part=snippet*, the API response will contain all of those properties.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        array[String] id = ; // array[String] | 
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        String playlistId = playlistId_example; // String | Return the playlist items within the given playlist.
        String videoId = videoId_example; // String | Return the playlist items associated with the given video ID.
        try {
            PlaylistItemListResponse result = apiInstance.youtube.playlistItems.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, id, maxResults, onBehalfOfContentOwner, pageToken, playlistId, videoId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlaylistItemsApi#youtube.playlistItems.list");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter specifies a comma-separated list of one or more playlistItem resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlistItem resource, the snippet property contains numerous fields, including the title, description, position, and resourceId properties. As such, if you set *part=snippet*, the API response will contain all of those properties.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
array[String] *id = ; //  (optional)
Integer *maxResults = 56; // The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
String *pageToken = pageToken_example; // The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)
String *playlistId = playlistId_example; // Return the playlist items within the given playlist. (optional)
String *videoId = videoId_example; // Return the playlist items associated with the given video ID. (optional)

PlaylistItemsApi *apiInstance = [[PlaylistItemsApi alloc] init];

[apiInstance youtube.playlistItems.listWith:part
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    id:id
    maxResults:maxResults
    onBehalfOfContentOwner:onBehalfOfContentOwner
    pageToken:pageToken
    playlistId:playlistId
    videoId:videoId
              completionHandler: ^(PlaylistItemListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.PlaylistItemsApi()
var part = ; // {{array[String]}} The *part* parameter specifies a comma-separated list of one or more playlistItem resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlistItem resource, the snippet property contains numerous fields, including the title, description, position, and resourceId properties. As such, if you set *part=snippet*, the API response will contain all of those properties.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'id': , // {{array[String]}} 
  'maxResults': 56, // {{Integer}} The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example, // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
  'pageToken': pageToken_example, // {{String}} The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
  'playlistId': playlistId_example, // {{String}} Return the playlist items within the given playlist.
  'videoId': videoId_example // {{String}} Return the playlist items associated with the given video ID.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.playlistItems.list(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.playlistItems.listExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PlaylistItemsApi();
            var part = new array[String](); // array[String] | The *part* parameter specifies a comma-separated list of one or more playlistItem resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlistItem resource, the snippet property contains numerous fields, including the title, description, position, and resourceId properties. As such, if you set *part=snippet*, the API response will contain all of those properties.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var id = new array[String](); // array[String] |  (optional) 
            var maxResults = 56;  // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 
            var pageToken = pageToken_example;  // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional) 
            var playlistId = playlistId_example;  // String | Return the playlist items within the given playlist. (optional) 
            var videoId = videoId_example;  // String | Return the playlist items associated with the given video ID. (optional) 

            try
            {
                PlaylistItemListResponse result = apiInstance.youtube.playlistItems.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, id, maxResults, onBehalfOfContentOwner, pageToken, playlistId, videoId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PlaylistItemsApi.youtube.playlistItems.list: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPlaylistItemsApi();
$part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more playlistItem resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlistItem resource, the snippet property contains numerous fields, including the title, description, position, and resourceId properties. As such, if you set *part=snippet*, the API response will contain all of those properties.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$id = ; // array[String] | 
$maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
$pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
$playlistId = playlistId_example; // String | Return the playlist items within the given playlist.
$videoId = videoId_example; // String | Return the playlist items associated with the given video ID.

try {
    $result = $api_instance->youtube.playlistItems.list($part, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $id, $maxResults, $onBehalfOfContentOwner, $pageToken, $playlistId, $videoId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PlaylistItemsApi->youtube.playlistItems.list: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PlaylistItemsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PlaylistItemsApi->new();
my $part = []; # array[String] | The *part* parameter specifies a comma-separated list of one or more playlistItem resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlistItem resource, the snippet property contains numerous fields, including the title, description, position, and resourceId properties. As such, if you set *part=snippet*, the API response will contain all of those properties.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $id = []; # array[String] | 
my $maxResults = 56; # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
my $pageToken = pageToken_example; # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
my $playlistId = playlistId_example; # String | Return the playlist items within the given playlist.
my $videoId = videoId_example; # String | Return the playlist items associated with the given video ID.

eval { 
    my $result = $api_instance->youtube.playlistItems.list(part => $part, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, id => $id, maxResults => $maxResults, onBehalfOfContentOwner => $onBehalfOfContentOwner, pageToken => $pageToken, playlistId => $playlistId, videoId => $videoId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PlaylistItemsApi->youtube.playlistItems.list: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PlaylistItemsApi()
part =  # array[String] | The *part* parameter specifies a comma-separated list of one or more playlistItem resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlistItem resource, the snippet property contains numerous fields, including the title, description, position, and resourceId properties. As such, if you set *part=snippet*, the API response will contain all of those properties.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
id =  # array[String] |  (optional)
maxResults = 56 # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
pageToken = pageToken_example # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)
playlistId = playlistId_example # String | Return the playlist items within the given playlist. (optional)
videoId = videoId_example # String | Return the playlist items associated with the given video ID. (optional)

try: 
    api_response = api_instance.youtube/playlist_items/list(part, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, id=id, maxResults=maxResults, onBehalfOfContentOwner=onBehalfOfContentOwner, pageToken=pageToken, playlistId=playlistId, videoId=videoId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PlaylistItemsApi->youtube.playlistItems.list: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter specifies a comma-separated list of one or more playlistItem resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlistItem resource, the snippet property contains numerous fields, including the title, description, position, and resourceId properties. As such, if you set *part=snippet*, the API response will contain all of those properties.
Required
id
array[String]
maxResults
Integer
The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
pageToken
String
The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
playlistId
String
Return the playlist items within the given playlist.
videoId
String
Return the playlist items associated with the given video ID.

Responses

Status: 200 - Successful response


youtube.playlistItems.update

Updates an existing resource.


/youtube/v3/playlistItems

Usage and SDK Samples

curl -X PUT\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://youtube.googleapis.com//youtube/v3/playlistItems?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&onBehalfOfContentOwner="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlaylistItemsApi;

import java.io.File;
import java.util.*;

public class PlaylistItemsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        PlaylistItemsApi apiInstance = new PlaylistItemsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a playlist item can specify a start time and end time, which identify the times portion of the video that should play when users watch the video in the playlist. If your request is updating a playlist item that sets these values, and the request's part parameter value includes the contentDetails part, the playlist item's start and end times will be updated to whatever value the request body specifies. If the request body does not specify values, the existing start and end times will be removed and replaced with the default settings.
        PlaylistItem body = ; // PlaylistItem | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            PlaylistItem result = apiInstance.youtube.playlistItems.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlaylistItemsApi#youtube.playlistItems.update");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PlaylistItemsApi;

public class PlaylistItemsApiExample {

    public static void main(String[] args) {
        PlaylistItemsApi apiInstance = new PlaylistItemsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a playlist item can specify a start time and end time, which identify the times portion of the video that should play when users watch the video in the playlist. If your request is updating a playlist item that sets these values, and the request's part parameter value includes the contentDetails part, the playlist item's start and end times will be updated to whatever value the request body specifies. If the request body does not specify values, the existing start and end times will be removed and replaced with the default settings.
        PlaylistItem body = ; // PlaylistItem | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            PlaylistItem result = apiInstance.youtube.playlistItems.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlaylistItemsApi#youtube.playlistItems.update");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a playlist item can specify a start time and end time, which identify the times portion of the video that should play when users watch the video in the playlist. If your request is updating a playlist item that sets these values, and the request's part parameter value includes the contentDetails part, the playlist item's start and end times will be updated to whatever value the request body specifies. If the request body does not specify values, the existing start and end times will be removed and replaced with the default settings.
PlaylistItem *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

PlaylistItemsApi *apiInstance = [[PlaylistItemsApi alloc] init];

[apiInstance youtube.playlistItems.updateWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
              completionHandler: ^(PlaylistItem output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.PlaylistItemsApi()
var part = ; // {{array[String]}} The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a playlist item can specify a start time and end time, which identify the times portion of the video that should play when users watch the video in the playlist. If your request is updating a playlist item that sets these values, and the request's part parameter value includes the contentDetails part, the playlist item's start and end times will be updated to whatever value the request body specifies. If the request body does not specify values, the existing start and end times will be removed and replaced with the default settings.
var opts = { 
  'body':  // {{PlaylistItem}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.playlistItems.update(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.playlistItems.updateExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PlaylistItemsApi();
            var part = new array[String](); // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a playlist item can specify a start time and end time, which identify the times portion of the video that should play when users watch the video in the playlist. If your request is updating a playlist item that sets these values, and the request's part parameter value includes the contentDetails part, the playlist item's start and end times will be updated to whatever value the request body specifies. If the request body does not specify values, the existing start and end times will be removed and replaced with the default settings.
            var body = new PlaylistItem(); // PlaylistItem |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 

            try
            {
                PlaylistItem result = apiInstance.youtube.playlistItems.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PlaylistItemsApi.youtube.playlistItems.update: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPlaylistItemsApi();
$part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a playlist item can specify a start time and end time, which identify the times portion of the video that should play when users watch the video in the playlist. If your request is updating a playlist item that sets these values, and the request's part parameter value includes the contentDetails part, the playlist item's start and end times will be updated to whatever value the request body specifies. If the request body does not specify values, the existing start and end times will be removed and replaced with the default settings.
$body = ; // PlaylistItem | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

try {
    $result = $api_instance->youtube.playlistItems.update($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PlaylistItemsApi->youtube.playlistItems.update: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PlaylistItemsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PlaylistItemsApi->new();
my $part = []; # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a playlist item can specify a start time and end time, which identify the times portion of the video that should play when users watch the video in the playlist. If your request is updating a playlist item that sets these values, and the request's part parameter value includes the contentDetails part, the playlist item's start and end times will be updated to whatever value the request body specifies. If the request body does not specify values, the existing start and end times will be removed and replaced with the default settings.
my $body = WWW::SwaggerClient::Object::PlaylistItem->new(); # PlaylistItem | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

eval { 
    my $result = $api_instance->youtube.playlistItems.update(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PlaylistItemsApi->youtube.playlistItems.update: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PlaylistItemsApi()
part =  # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a playlist item can specify a start time and end time, which identify the times portion of the video that should play when users watch the video in the playlist. If your request is updating a playlist item that sets these values, and the request's part parameter value includes the contentDetails part, the playlist item's start and end times will be updated to whatever value the request body specifies. If the request body does not specify values, the existing start and end times will be removed and replaced with the default settings.
body =  # PlaylistItem |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

try: 
    api_response = api_instance.youtube/playlist_items/update(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PlaylistItemsApi->youtube.playlistItems.update: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a playlist item can specify a start time and end time, which identify the times portion of the video that should play when users watch the video in the playlist. If your request is updating a playlist item that sets these values, and the request's part parameter value includes the contentDetails part, the playlist item's start and end times will be updated to whatever value the request body specifies. If the request body does not specify values, the existing start and end times will be removed and replaced with the default settings.
Required
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

Responses

Status: 200 - Successful response


Playlists

youtube.playlists.delete

Deletes a resource.


/youtube/v3/playlists

Usage and SDK Samples

curl -X DELETE\
\
\
"https://youtube.googleapis.com//youtube/v3/playlists?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&id=&onBehalfOfContentOwner="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlaylistsApi;

import java.io.File;
import java.util.*;

public class PlaylistsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        PlaylistsApi apiInstance = new PlaylistsApi();
        String id = id_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            apiInstance.youtube.playlists.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlaylistsApi#youtube.playlists.delete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PlaylistsApi;

public class PlaylistsApiExample {

    public static void main(String[] args) {
        PlaylistsApi apiInstance = new PlaylistsApi();
        String id = id_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            apiInstance.youtube.playlists.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlaylistsApi#youtube.playlists.delete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *id = id_example; // 
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

PlaylistsApi *apiInstance = [[PlaylistsApi alloc] init];

[apiInstance youtube.playlists.deleteWith:id
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.PlaylistsApi()
var id = id_example; // {{String}} 
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.youtube.playlists.delete(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.playlists.deleteExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PlaylistsApi();
            var id = id_example;  // String | 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 

            try
            {
                apiInstance.youtube.playlists.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PlaylistsApi.youtube.playlists.delete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPlaylistsApi();
$id = id_example; // String | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

try {
    $api_instance->youtube.playlists.delete($id, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner);
} catch (Exception $e) {
    echo 'Exception when calling PlaylistsApi->youtube.playlists.delete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PlaylistsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PlaylistsApi->new();
my $id = id_example; # String | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

eval { 
    $api_instance->youtube.playlists.delete(id => $id, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner);
};
if ($@) {
    warn "Exception when calling PlaylistsApi->youtube.playlists.delete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PlaylistsApi()
id = id_example # String | 
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

try: 
    api_instance.youtube/playlists/delete(id, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner)
except ApiException as e:
    print("Exception when calling PlaylistsApi->youtube.playlists.delete: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
id*
String
Required
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

Responses

Status: 200 - Successful response


youtube.playlists.insert

Inserts a new resource into this collection.


/youtube/v3/playlists

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://youtube.googleapis.com//youtube/v3/playlists?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&onBehalfOfContentOwner=&onBehalfOfContentOwnerChannel="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlaylistsApi;

import java.io.File;
import java.util.*;

public class PlaylistsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        PlaylistsApi apiInstance = new PlaylistsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
        Playlist body = ; // Playlist | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        try {
            Playlist result = apiInstance.youtube.playlists.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlaylistsApi#youtube.playlists.insert");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PlaylistsApi;

public class PlaylistsApiExample {

    public static void main(String[] args) {
        PlaylistsApi apiInstance = new PlaylistsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
        Playlist body = ; // Playlist | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        try {
            Playlist result = apiInstance.youtube.playlists.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlaylistsApi#youtube.playlists.insert");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
Playlist *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
String *onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)

PlaylistsApi *apiInstance = [[PlaylistsApi alloc] init];

[apiInstance youtube.playlists.insertWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
    onBehalfOfContentOwnerChannel:onBehalfOfContentOwnerChannel
              completionHandler: ^(Playlist output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.PlaylistsApi()
var part = ; // {{array[String]}} The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
var opts = { 
  'body':  // {{Playlist}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
  'onBehalfOfContentOwnerChannel': onBehalfOfContentOwnerChannel_example // {{String}} This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.playlists.insert(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.playlists.insertExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PlaylistsApi();
            var part = new array[String](); // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
            var body = new Playlist(); // Playlist |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 
            var onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example;  // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional) 

            try
            {
                Playlist result = apiInstance.youtube.playlists.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PlaylistsApi.youtube.playlists.insert: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPlaylistsApi();
$part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
$body = ; // Playlist | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
$onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

try {
    $result = $api_instance->youtube.playlists.insert($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner, $onBehalfOfContentOwnerChannel);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PlaylistsApi->youtube.playlists.insert: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PlaylistsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PlaylistsApi->new();
my $part = []; # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
my $body = WWW::SwaggerClient::Object::Playlist->new(); # Playlist | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
my $onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

eval { 
    my $result = $api_instance->youtube.playlists.insert(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner, onBehalfOfContentOwnerChannel => $onBehalfOfContentOwnerChannel);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PlaylistsApi->youtube.playlists.insert: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PlaylistsApi()
part =  # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
body =  # Playlist |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)

try: 
    api_response = api_instance.youtube/playlists/insert(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner, onBehalfOfContentOwnerChannel=onBehalfOfContentOwnerChannel)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PlaylistsApi->youtube.playlists.insert: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
Required
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
onBehalfOfContentOwnerChannel
String
This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

Responses

Status: 200 - Successful response


youtube.playlists.list

Retrieves a list of resources, possibly filtered.


/youtube/v3/playlists

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/playlists?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&channelId=&hl=&id=&maxResults=&mine=&onBehalfOfContentOwner=&onBehalfOfContentOwnerChannel=&pageToken="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlaylistsApi;

import java.io.File;
import java.util.*;

public class PlaylistsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        PlaylistsApi apiInstance = new PlaylistsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more playlist resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlist resource, the snippet property contains properties like author, title, description, tags, and timeCreated. As such, if you set *part=snippet*, the API response will contain all of those properties.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String channelId = channelId_example; // String | Return the playlists owned by the specified channel ID.
        String hl = hl_example; // String | Returen content in specified language
        array[String] id = ; // array[String] | Return the playlists with the given IDs for Stubby or Apiary.
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        Boolean mine = true; // Boolean | Return the playlists owned by the authenticated user.
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        try {
            PlaylistListResponse result = apiInstance.youtube.playlists.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, channelId, hl, id, maxResults, mine, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlaylistsApi#youtube.playlists.list");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PlaylistsApi;

public class PlaylistsApiExample {

    public static void main(String[] args) {
        PlaylistsApi apiInstance = new PlaylistsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more playlist resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlist resource, the snippet property contains properties like author, title, description, tags, and timeCreated. As such, if you set *part=snippet*, the API response will contain all of those properties.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String channelId = channelId_example; // String | Return the playlists owned by the specified channel ID.
        String hl = hl_example; // String | Returen content in specified language
        array[String] id = ; // array[String] | Return the playlists with the given IDs for Stubby or Apiary.
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        Boolean mine = true; // Boolean | Return the playlists owned by the authenticated user.
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        try {
            PlaylistListResponse result = apiInstance.youtube.playlists.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, channelId, hl, id, maxResults, mine, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlaylistsApi#youtube.playlists.list");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter specifies a comma-separated list of one or more playlist resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlist resource, the snippet property contains properties like author, title, description, tags, and timeCreated. As such, if you set *part=snippet*, the API response will contain all of those properties.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *channelId = channelId_example; // Return the playlists owned by the specified channel ID. (optional)
String *hl = hl_example; // Returen content in specified language (optional)
array[String] *id = ; // Return the playlists with the given IDs for Stubby or Apiary. (optional)
Integer *maxResults = 56; // The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
Boolean *mine = true; // Return the playlists owned by the authenticated user. (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
String *onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)
String *pageToken = pageToken_example; // The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)

PlaylistsApi *apiInstance = [[PlaylistsApi alloc] init];

[apiInstance youtube.playlists.listWith:part
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    channelId:channelId
    hl:hl
    id:id
    maxResults:maxResults
    mine:mine
    onBehalfOfContentOwner:onBehalfOfContentOwner
    onBehalfOfContentOwnerChannel:onBehalfOfContentOwnerChannel
    pageToken:pageToken
              completionHandler: ^(PlaylistListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.PlaylistsApi()
var part = ; // {{array[String]}} The *part* parameter specifies a comma-separated list of one or more playlist resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlist resource, the snippet property contains properties like author, title, description, tags, and timeCreated. As such, if you set *part=snippet*, the API response will contain all of those properties.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'channelId': channelId_example, // {{String}} Return the playlists owned by the specified channel ID.
  'hl': hl_example, // {{String}} Returen content in specified language
  'id': , // {{array[String]}} Return the playlists with the given IDs for Stubby or Apiary.
  'maxResults': 56, // {{Integer}} The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
  'mine': true, // {{Boolean}} Return the playlists owned by the authenticated user.
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example, // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
  'onBehalfOfContentOwnerChannel': onBehalfOfContentOwnerChannel_example, // {{String}} This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
  'pageToken': pageToken_example // {{String}} The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.playlists.list(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.playlists.listExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PlaylistsApi();
            var part = new array[String](); // array[String] | The *part* parameter specifies a comma-separated list of one or more playlist resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlist resource, the snippet property contains properties like author, title, description, tags, and timeCreated. As such, if you set *part=snippet*, the API response will contain all of those properties.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var channelId = channelId_example;  // String | Return the playlists owned by the specified channel ID. (optional) 
            var hl = hl_example;  // String | Returen content in specified language (optional) 
            var id = new array[String](); // array[String] | Return the playlists with the given IDs for Stubby or Apiary. (optional) 
            var maxResults = 56;  // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional) 
            var mine = true;  // Boolean | Return the playlists owned by the authenticated user. (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 
            var onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example;  // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional) 
            var pageToken = pageToken_example;  // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional) 

            try
            {
                PlaylistListResponse result = apiInstance.youtube.playlists.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, channelId, hl, id, maxResults, mine, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel, pageToken);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PlaylistsApi.youtube.playlists.list: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPlaylistsApi();
$part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more playlist resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlist resource, the snippet property contains properties like author, title, description, tags, and timeCreated. As such, if you set *part=snippet*, the API response will contain all of those properties.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$channelId = channelId_example; // String | Return the playlists owned by the specified channel ID.
$hl = hl_example; // String | Returen content in specified language
$id = ; // array[String] | Return the playlists with the given IDs for Stubby or Apiary.
$maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
$mine = true; // Boolean | Return the playlists owned by the authenticated user.
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
$onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
$pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

try {
    $result = $api_instance->youtube.playlists.list($part, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $channelId, $hl, $id, $maxResults, $mine, $onBehalfOfContentOwner, $onBehalfOfContentOwnerChannel, $pageToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PlaylistsApi->youtube.playlists.list: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PlaylistsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PlaylistsApi->new();
my $part = []; # array[String] | The *part* parameter specifies a comma-separated list of one or more playlist resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlist resource, the snippet property contains properties like author, title, description, tags, and timeCreated. As such, if you set *part=snippet*, the API response will contain all of those properties.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $channelId = channelId_example; # String | Return the playlists owned by the specified channel ID.
my $hl = hl_example; # String | Returen content in specified language
my $id = []; # array[String] | Return the playlists with the given IDs for Stubby or Apiary.
my $maxResults = 56; # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
my $mine = true; # Boolean | Return the playlists owned by the authenticated user.
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
my $onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
my $pageToken = pageToken_example; # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

eval { 
    my $result = $api_instance->youtube.playlists.list(part => $part, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, channelId => $channelId, hl => $hl, id => $id, maxResults => $maxResults, mine => $mine, onBehalfOfContentOwner => $onBehalfOfContentOwner, onBehalfOfContentOwnerChannel => $onBehalfOfContentOwnerChannel, pageToken => $pageToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PlaylistsApi->youtube.playlists.list: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PlaylistsApi()
part =  # array[String] | The *part* parameter specifies a comma-separated list of one or more playlist resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlist resource, the snippet property contains properties like author, title, description, tags, and timeCreated. As such, if you set *part=snippet*, the API response will contain all of those properties.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
channelId = channelId_example # String | Return the playlists owned by the specified channel ID. (optional)
hl = hl_example # String | Returen content in specified language (optional)
id =  # array[String] | Return the playlists with the given IDs for Stubby or Apiary. (optional)
maxResults = 56 # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
mine = true # Boolean | Return the playlists owned by the authenticated user. (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)
pageToken = pageToken_example # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)

try: 
    api_response = api_instance.youtube/playlists/list(part, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, channelId=channelId, hl=hl, id=id, maxResults=maxResults, mine=mine, onBehalfOfContentOwner=onBehalfOfContentOwner, onBehalfOfContentOwnerChannel=onBehalfOfContentOwnerChannel, pageToken=pageToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PlaylistsApi->youtube.playlists.list: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter specifies a comma-separated list of one or more playlist resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlist resource, the snippet property contains properties like author, title, description, tags, and timeCreated. As such, if you set *part=snippet*, the API response will contain all of those properties.
Required
channelId
String
Return the playlists owned by the specified channel ID.
hl
String
Returen content in specified language
id
array[String]
Return the playlists with the given IDs for Stubby or Apiary.
maxResults
Integer
The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
mine
Boolean
Return the playlists owned by the authenticated user.
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
onBehalfOfContentOwnerChannel
String
This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
pageToken
String
The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

Responses

Status: 200 - Successful response


youtube.playlists.update

Updates an existing resource.


/youtube/v3/playlists

Usage and SDK Samples

curl -X PUT\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://youtube.googleapis.com//youtube/v3/playlists?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&onBehalfOfContentOwner="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlaylistsApi;

import java.io.File;
import java.util.*;

public class PlaylistsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        PlaylistsApi apiInstance = new PlaylistsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for mutable properties that are contained in any parts that the request body specifies. For example, a playlist's description is contained in the snippet part, which must be included in the request body. If the request does not specify a value for the snippet.description property, the playlist's existing description will be deleted.
        Playlist body = ; // Playlist | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            Playlist result = apiInstance.youtube.playlists.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlaylistsApi#youtube.playlists.update");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PlaylistsApi;

public class PlaylistsApiExample {

    public static void main(String[] args) {
        PlaylistsApi apiInstance = new PlaylistsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for mutable properties that are contained in any parts that the request body specifies. For example, a playlist's description is contained in the snippet part, which must be included in the request body. If the request does not specify a value for the snippet.description property, the playlist's existing description will be deleted.
        Playlist body = ; // Playlist | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            Playlist result = apiInstance.youtube.playlists.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlaylistsApi#youtube.playlists.update");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for mutable properties that are contained in any parts that the request body specifies. For example, a playlist's description is contained in the snippet part, which must be included in the request body. If the request does not specify a value for the snippet.description property, the playlist's existing description will be deleted.
Playlist *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

PlaylistsApi *apiInstance = [[PlaylistsApi alloc] init];

[apiInstance youtube.playlists.updateWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
              completionHandler: ^(Playlist output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.PlaylistsApi()
var part = ; // {{array[String]}} The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for mutable properties that are contained in any parts that the request body specifies. For example, a playlist's description is contained in the snippet part, which must be included in the request body. If the request does not specify a value for the snippet.description property, the playlist's existing description will be deleted.
var opts = { 
  'body':  // {{Playlist}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.playlists.update(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.playlists.updateExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PlaylistsApi();
            var part = new array[String](); // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for mutable properties that are contained in any parts that the request body specifies. For example, a playlist's description is contained in the snippet part, which must be included in the request body. If the request does not specify a value for the snippet.description property, the playlist's existing description will be deleted.
            var body = new Playlist(); // Playlist |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 

            try
            {
                Playlist result = apiInstance.youtube.playlists.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PlaylistsApi.youtube.playlists.update: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPlaylistsApi();
$part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for mutable properties that are contained in any parts that the request body specifies. For example, a playlist's description is contained in the snippet part, which must be included in the request body. If the request does not specify a value for the snippet.description property, the playlist's existing description will be deleted.
$body = ; // Playlist | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

try {
    $result = $api_instance->youtube.playlists.update($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PlaylistsApi->youtube.playlists.update: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PlaylistsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PlaylistsApi->new();
my $part = []; # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for mutable properties that are contained in any parts that the request body specifies. For example, a playlist's description is contained in the snippet part, which must be included in the request body. If the request does not specify a value for the snippet.description property, the playlist's existing description will be deleted.
my $body = WWW::SwaggerClient::Object::Playlist->new(); # Playlist | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

eval { 
    my $result = $api_instance->youtube.playlists.update(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PlaylistsApi->youtube.playlists.update: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PlaylistsApi()
part =  # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for mutable properties that are contained in any parts that the request body specifies. For example, a playlist's description is contained in the snippet part, which must be included in the request body. If the request does not specify a value for the snippet.description property, the playlist's existing description will be deleted.
body =  # Playlist |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

try: 
    api_response = api_instance.youtube/playlists/update(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PlaylistsApi->youtube.playlists.update: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for mutable properties that are contained in any parts that the request body specifies. For example, a playlist's description is contained in the snippet part, which must be included in the request body. If the request does not specify a value for the snippet.description property, the playlist's existing description will be deleted.
Required
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

Responses

Status: 200 - Successful response


Subscriptions

youtube.subscriptions.delete

Deletes a resource.


/youtube/v3/subscriptions

Usage and SDK Samples

curl -X DELETE\
\
\
"https://youtube.googleapis.com//youtube/v3/subscriptions?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubscriptionsApi;

import java.io.File;
import java.util.*;

public class SubscriptionsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        SubscriptionsApi apiInstance = new SubscriptionsApi();
        String id = id_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            apiInstance.youtube.subscriptions.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionsApi#youtube.subscriptions.delete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SubscriptionsApi;

public class SubscriptionsApiExample {

    public static void main(String[] args) {
        SubscriptionsApi apiInstance = new SubscriptionsApi();
        String id = id_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            apiInstance.youtube.subscriptions.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionsApi#youtube.subscriptions.delete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *id = id_example; // 
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

SubscriptionsApi *apiInstance = [[SubscriptionsApi alloc] init];

[apiInstance youtube.subscriptions.deleteWith:id
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.SubscriptionsApi()
var id = id_example; // {{String}} 
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.youtube.subscriptions.delete(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.subscriptions.deleteExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new SubscriptionsApi();
            var id = id_example;  // String | 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 

            try
            {
                apiInstance.youtube.subscriptions.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubscriptionsApi.youtube.subscriptions.delete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiSubscriptionsApi();
$id = id_example; // String | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").

try {
    $api_instance->youtube.subscriptions.delete($id, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType);
} catch (Exception $e) {
    echo 'Exception when calling SubscriptionsApi->youtube.subscriptions.delete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SubscriptionsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::SubscriptionsApi->new();
my $id = id_example; # String | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").

eval { 
    $api_instance->youtube.subscriptions.delete(id => $id, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType);
};
if ($@) {
    warn "Exception when calling SubscriptionsApi->youtube.subscriptions.delete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.SubscriptionsApi()
id = id_example # String | 
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

try: 
    api_instance.youtube/subscriptions/delete(id, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType)
except ApiException as e:
    print("Exception when calling SubscriptionsApi->youtube.subscriptions.delete: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
id*
String
Required

Responses

Status: 200 - Successful response


youtube.subscriptions.insert

Inserts a new resource into this collection.


/youtube/v3/subscriptions

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://youtube.googleapis.com//youtube/v3/subscriptions?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubscriptionsApi;

import java.io.File;
import java.util.*;

public class SubscriptionsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        SubscriptionsApi apiInstance = new SubscriptionsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
        Subscription body = ; // Subscription | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            Subscription result = apiInstance.youtube.subscriptions.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionsApi#youtube.subscriptions.insert");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SubscriptionsApi;

public class SubscriptionsApiExample {

    public static void main(String[] args) {
        SubscriptionsApi apiInstance = new SubscriptionsApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
        Subscription body = ; // Subscription | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            Subscription result = apiInstance.youtube.subscriptions.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionsApi#youtube.subscriptions.insert");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
Subscription *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

SubscriptionsApi *apiInstance = [[SubscriptionsApi alloc] init];

[apiInstance youtube.subscriptions.insertWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
              completionHandler: ^(Subscription output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.SubscriptionsApi()
var part = ; // {{array[String]}} The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
var opts = { 
  'body':  // {{Subscription}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.subscriptions.insert(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.subscriptions.insertExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new SubscriptionsApi();
            var part = new array[String](); // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
            var body = new Subscription(); // Subscription |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 

            try
            {
                Subscription result = apiInstance.youtube.subscriptions.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubscriptionsApi.youtube.subscriptions.insert: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiSubscriptionsApi();
$part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
$body = ; // Subscription | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").

try {
    $result = $api_instance->youtube.subscriptions.insert($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SubscriptionsApi->youtube.subscriptions.insert: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SubscriptionsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::SubscriptionsApi->new();
my $part = []; # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
my $body = WWW::SwaggerClient::Object::Subscription->new(); # Subscription | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").

eval { 
    my $result = $api_instance->youtube.subscriptions.insert(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubscriptionsApi->youtube.subscriptions.insert: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.SubscriptionsApi()
part =  # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
body =  # Subscription |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

try: 
    api_response = api_instance.youtube/subscriptions/insert(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubscriptionsApi->youtube.subscriptions.insert: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
Required

Responses

Status: 200 - Successful response


youtube.subscriptions.list

Retrieves a list of resources, possibly filtered.


/youtube/v3/subscriptions

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/subscriptions?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&channelId=&forChannelId=&id=&maxResults=&mine=&myRecentSubscribers=&mySubscribers=&onBehalfOfContentOwner=&onBehalfOfContentOwnerChannel=&order=&pageToken="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubscriptionsApi;

import java.io.File;
import java.util.*;

public class SubscriptionsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        SubscriptionsApi apiInstance = new SubscriptionsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more subscription resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a subscription resource, the snippet property contains other properties, such as a display title for the subscription. If you set *part=snippet*, the API response will also contain all of those nested properties.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String channelId = channelId_example; // String | Return the subscriptions of the given channel owner.
        String forChannelId = forChannelId_example; // String | Return the subscriptions to the subset of these channels that the authenticated user is subscribed to.
        array[String] id = ; // array[String] | Return the subscriptions with the given IDs for Stubby or Apiary.
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        Boolean mine = true; // Boolean | Flag for returning the subscriptions of the authenticated user.
        Boolean myRecentSubscribers = true; // Boolean | 
        Boolean mySubscribers = true; // Boolean | Return the subscribers of the given channel owner.
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        String order = order_example; // String | The order of the returned subscriptions
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        try {
            SubscriptionListResponse result = apiInstance.youtube.subscriptions.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, channelId, forChannelId, id, maxResults, mine, myRecentSubscribers, mySubscribers, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel, order, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionsApi#youtube.subscriptions.list");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SubscriptionsApi;

public class SubscriptionsApiExample {

    public static void main(String[] args) {
        SubscriptionsApi apiInstance = new SubscriptionsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more subscription resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a subscription resource, the snippet property contains other properties, such as a display title for the subscription. If you set *part=snippet*, the API response will also contain all of those nested properties.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String channelId = channelId_example; // String | Return the subscriptions of the given channel owner.
        String forChannelId = forChannelId_example; // String | Return the subscriptions to the subset of these channels that the authenticated user is subscribed to.
        array[String] id = ; // array[String] | Return the subscriptions with the given IDs for Stubby or Apiary.
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        Boolean mine = true; // Boolean | Flag for returning the subscriptions of the authenticated user.
        Boolean myRecentSubscribers = true; // Boolean | 
        Boolean mySubscribers = true; // Boolean | Return the subscribers of the given channel owner.
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        String order = order_example; // String | The order of the returned subscriptions
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        try {
            SubscriptionListResponse result = apiInstance.youtube.subscriptions.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, channelId, forChannelId, id, maxResults, mine, myRecentSubscribers, mySubscribers, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel, order, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionsApi#youtube.subscriptions.list");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter specifies a comma-separated list of one or more subscription resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a subscription resource, the snippet property contains other properties, such as a display title for the subscription. If you set *part=snippet*, the API response will also contain all of those nested properties.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *channelId = channelId_example; // Return the subscriptions of the given channel owner. (optional)
String *forChannelId = forChannelId_example; // Return the subscriptions to the subset of these channels that the authenticated user is subscribed to. (optional)
array[String] *id = ; // Return the subscriptions with the given IDs for Stubby or Apiary. (optional)
Integer *maxResults = 56; // The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
Boolean *mine = true; // Flag for returning the subscriptions of the authenticated user. (optional)
Boolean *myRecentSubscribers = true; //  (optional)
Boolean *mySubscribers = true; // Return the subscribers of the given channel owner. (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
String *onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)
String *order = order_example; // The order of the returned subscriptions (optional)
String *pageToken = pageToken_example; // The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)

SubscriptionsApi *apiInstance = [[SubscriptionsApi alloc] init];

[apiInstance youtube.subscriptions.listWith:part
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    channelId:channelId
    forChannelId:forChannelId
    id:id
    maxResults:maxResults
    mine:mine
    myRecentSubscribers:myRecentSubscribers
    mySubscribers:mySubscribers
    onBehalfOfContentOwner:onBehalfOfContentOwner
    onBehalfOfContentOwnerChannel:onBehalfOfContentOwnerChannel
    order:order
    pageToken:pageToken
              completionHandler: ^(SubscriptionListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.SubscriptionsApi()
var part = ; // {{array[String]}} The *part* parameter specifies a comma-separated list of one or more subscription resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a subscription resource, the snippet property contains other properties, such as a display title for the subscription. If you set *part=snippet*, the API response will also contain all of those nested properties.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'channelId': channelId_example, // {{String}} Return the subscriptions of the given channel owner.
  'forChannelId': forChannelId_example, // {{String}} Return the subscriptions to the subset of these channels that the authenticated user is subscribed to.
  'id': , // {{array[String]}} Return the subscriptions with the given IDs for Stubby or Apiary.
  'maxResults': 56, // {{Integer}} The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
  'mine': true, // {{Boolean}} Flag for returning the subscriptions of the authenticated user.
  'myRecentSubscribers': true, // {{Boolean}} 
  'mySubscribers': true, // {{Boolean}} Return the subscribers of the given channel owner.
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example, // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
  'onBehalfOfContentOwnerChannel': onBehalfOfContentOwnerChannel_example, // {{String}} This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
  'order': order_example, // {{String}} The order of the returned subscriptions
  'pageToken': pageToken_example // {{String}} The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.subscriptions.list(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.subscriptions.listExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new SubscriptionsApi();
            var part = new array[String](); // array[String] | The *part* parameter specifies a comma-separated list of one or more subscription resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a subscription resource, the snippet property contains other properties, such as a display title for the subscription. If you set *part=snippet*, the API response will also contain all of those nested properties.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var channelId = channelId_example;  // String | Return the subscriptions of the given channel owner. (optional) 
            var forChannelId = forChannelId_example;  // String | Return the subscriptions to the subset of these channels that the authenticated user is subscribed to. (optional) 
            var id = new array[String](); // array[String] | Return the subscriptions with the given IDs for Stubby or Apiary. (optional) 
            var maxResults = 56;  // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional) 
            var mine = true;  // Boolean | Flag for returning the subscriptions of the authenticated user. (optional) 
            var myRecentSubscribers = true;  // Boolean |  (optional) 
            var mySubscribers = true;  // Boolean | Return the subscribers of the given channel owner. (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 
            var onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example;  // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional) 
            var order = order_example;  // String | The order of the returned subscriptions (optional) 
            var pageToken = pageToken_example;  // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional) 

            try
            {
                SubscriptionListResponse result = apiInstance.youtube.subscriptions.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, channelId, forChannelId, id, maxResults, mine, myRecentSubscribers, mySubscribers, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel, order, pageToken);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubscriptionsApi.youtube.subscriptions.list: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiSubscriptionsApi();
$part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more subscription resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a subscription resource, the snippet property contains other properties, such as a display title for the subscription. If you set *part=snippet*, the API response will also contain all of those nested properties.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$channelId = channelId_example; // String | Return the subscriptions of the given channel owner.
$forChannelId = forChannelId_example; // String | Return the subscriptions to the subset of these channels that the authenticated user is subscribed to.
$id = ; // array[String] | Return the subscriptions with the given IDs for Stubby or Apiary.
$maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
$mine = true; // Boolean | Flag for returning the subscriptions of the authenticated user.
$myRecentSubscribers = true; // Boolean | 
$mySubscribers = true; // Boolean | Return the subscribers of the given channel owner.
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
$onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
$order = order_example; // String | The order of the returned subscriptions
$pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

try {
    $result = $api_instance->youtube.subscriptions.list($part, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $channelId, $forChannelId, $id, $maxResults, $mine, $myRecentSubscribers, $mySubscribers, $onBehalfOfContentOwner, $onBehalfOfContentOwnerChannel, $order, $pageToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SubscriptionsApi->youtube.subscriptions.list: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SubscriptionsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::SubscriptionsApi->new();
my $part = []; # array[String] | The *part* parameter specifies a comma-separated list of one or more subscription resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a subscription resource, the snippet property contains other properties, such as a display title for the subscription. If you set *part=snippet*, the API response will also contain all of those nested properties.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $channelId = channelId_example; # String | Return the subscriptions of the given channel owner.
my $forChannelId = forChannelId_example; # String | Return the subscriptions to the subset of these channels that the authenticated user is subscribed to.
my $id = []; # array[String] | Return the subscriptions with the given IDs for Stubby or Apiary.
my $maxResults = 56; # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
my $mine = true; # Boolean | Flag for returning the subscriptions of the authenticated user.
my $myRecentSubscribers = true; # Boolean | 
my $mySubscribers = true; # Boolean | Return the subscribers of the given channel owner.
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
my $onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
my $order = order_example; # String | The order of the returned subscriptions
my $pageToken = pageToken_example; # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

eval { 
    my $result = $api_instance->youtube.subscriptions.list(part => $part, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, channelId => $channelId, forChannelId => $forChannelId, id => $id, maxResults => $maxResults, mine => $mine, myRecentSubscribers => $myRecentSubscribers, mySubscribers => $mySubscribers, onBehalfOfContentOwner => $onBehalfOfContentOwner, onBehalfOfContentOwnerChannel => $onBehalfOfContentOwnerChannel, order => $order, pageToken => $pageToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubscriptionsApi->youtube.subscriptions.list: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.SubscriptionsApi()
part =  # array[String] | The *part* parameter specifies a comma-separated list of one or more subscription resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a subscription resource, the snippet property contains other properties, such as a display title for the subscription. If you set *part=snippet*, the API response will also contain all of those nested properties.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
channelId = channelId_example # String | Return the subscriptions of the given channel owner. (optional)
forChannelId = forChannelId_example # String | Return the subscriptions to the subset of these channels that the authenticated user is subscribed to. (optional)
id =  # array[String] | Return the subscriptions with the given IDs for Stubby or Apiary. (optional)
maxResults = 56 # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
mine = true # Boolean | Flag for returning the subscriptions of the authenticated user. (optional)
myRecentSubscribers = true # Boolean |  (optional)
mySubscribers = true # Boolean | Return the subscribers of the given channel owner. (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)
order = order_example # String | The order of the returned subscriptions (optional)
pageToken = pageToken_example # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)

try: 
    api_response = api_instance.youtube/subscriptions/list(part, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, channelId=channelId, forChannelId=forChannelId, id=id, maxResults=maxResults, mine=mine, myRecentSubscribers=myRecentSubscribers, mySubscribers=mySubscribers, onBehalfOfContentOwner=onBehalfOfContentOwner, onBehalfOfContentOwnerChannel=onBehalfOfContentOwnerChannel, order=order, pageToken=pageToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubscriptionsApi->youtube.subscriptions.list: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter specifies a comma-separated list of one or more subscription resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a subscription resource, the snippet property contains other properties, such as a display title for the subscription. If you set *part=snippet*, the API response will also contain all of those nested properties.
Required
channelId
String
Return the subscriptions of the given channel owner.
forChannelId
String
Return the subscriptions to the subset of these channels that the authenticated user is subscribed to.
id
array[String]
Return the subscriptions with the given IDs for Stubby or Apiary.
maxResults
Integer
The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
mine
Boolean
Flag for returning the subscriptions of the authenticated user.
myRecentSubscribers
Boolean
mySubscribers
Boolean
Return the subscribers of the given channel owner.
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
onBehalfOfContentOwnerChannel
String
This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
order
String
The order of the returned subscriptions
pageToken
String
The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

Responses

Status: 200 - Successful response


SuperChatEvents

youtube.superChatEvents.list

Retrieves a list of resources, possibly filtered.


/youtube/v3/superChatEvents

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/superChatEvents?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&hl=&maxResults=&pageToken="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SuperChatEventsApi;

import java.io.File;
import java.util.*;

public class SuperChatEventsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        SuperChatEventsApi apiInstance = new SuperChatEventsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies the superChatEvent resource parts that the API response will include. Supported values are id and snippet.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String hl = hl_example; // String | Return rendered funding amounts in specified language.
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        try {
            SuperChatEventListResponse result = apiInstance.youtube.superChatEvents.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, hl, maxResults, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SuperChatEventsApi#youtube.superChatEvents.list");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SuperChatEventsApi;

public class SuperChatEventsApiExample {

    public static void main(String[] args) {
        SuperChatEventsApi apiInstance = new SuperChatEventsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies the superChatEvent resource parts that the API response will include. Supported values are id and snippet.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String hl = hl_example; // String | Return rendered funding amounts in specified language.
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        try {
            SuperChatEventListResponse result = apiInstance.youtube.superChatEvents.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, hl, maxResults, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SuperChatEventsApi#youtube.superChatEvents.list");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter specifies the superChatEvent resource parts that the API response will include. Supported values are id and snippet.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *hl = hl_example; // Return rendered funding amounts in specified language. (optional)
Integer *maxResults = 56; // The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
String *pageToken = pageToken_example; // The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)

SuperChatEventsApi *apiInstance = [[SuperChatEventsApi alloc] init];

[apiInstance youtube.superChatEvents.listWith:part
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    hl:hl
    maxResults:maxResults
    pageToken:pageToken
              completionHandler: ^(SuperChatEventListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.SuperChatEventsApi()
var part = ; // {{array[String]}} The *part* parameter specifies the superChatEvent resource parts that the API response will include. Supported values are id and snippet.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'hl': hl_example, // {{String}} Return rendered funding amounts in specified language.
  'maxResults': 56, // {{Integer}} The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
  'pageToken': pageToken_example // {{String}} The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.superChatEvents.list(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.superChatEvents.listExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new SuperChatEventsApi();
            var part = new array[String](); // array[String] | The *part* parameter specifies the superChatEvent resource parts that the API response will include. Supported values are id and snippet.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var hl = hl_example;  // String | Return rendered funding amounts in specified language. (optional) 
            var maxResults = 56;  // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional) 
            var pageToken = pageToken_example;  // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional) 

            try
            {
                SuperChatEventListResponse result = apiInstance.youtube.superChatEvents.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, hl, maxResults, pageToken);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SuperChatEventsApi.youtube.superChatEvents.list: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiSuperChatEventsApi();
$part = ; // array[String] | The *part* parameter specifies the superChatEvent resource parts that the API response will include. Supported values are id and snippet.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$hl = hl_example; // String | Return rendered funding amounts in specified language.
$maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
$pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

try {
    $result = $api_instance->youtube.superChatEvents.list($part, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $hl, $maxResults, $pageToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SuperChatEventsApi->youtube.superChatEvents.list: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SuperChatEventsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::SuperChatEventsApi->new();
my $part = []; # array[String] | The *part* parameter specifies the superChatEvent resource parts that the API response will include. Supported values are id and snippet.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $hl = hl_example; # String | Return rendered funding amounts in specified language.
my $maxResults = 56; # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
my $pageToken = pageToken_example; # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

eval { 
    my $result = $api_instance->youtube.superChatEvents.list(part => $part, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, hl => $hl, maxResults => $maxResults, pageToken => $pageToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SuperChatEventsApi->youtube.superChatEvents.list: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.SuperChatEventsApi()
part =  # array[String] | The *part* parameter specifies the superChatEvent resource parts that the API response will include. Supported values are id and snippet.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
hl = hl_example # String | Return rendered funding amounts in specified language. (optional)
maxResults = 56 # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. (optional)
pageToken = pageToken_example # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. (optional)

try: 
    api_response = api_instance.youtube/super_chat_events/list(part, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, hl=hl, maxResults=maxResults, pageToken=pageToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SuperChatEventsApi->youtube.superChatEvents.list: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter specifies the superChatEvent resource parts that the API response will include. Supported values are id and snippet.
Required
hl
String
Return rendered funding amounts in specified language.
maxResults
Integer
The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
pageToken
String
The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

Responses

Status: 200 - Successful response


Tests

youtube.tests.insert

POST method.


/youtube/v3/tests

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://youtube.googleapis.com//youtube/v3/tests?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TestsApi;

import java.io.File;
import java.util.*;

public class TestsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        TestsApi apiInstance = new TestsApi();
        array[String] part = ; // array[String] | 
        TestItem body = ; // TestItem | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            TestItem result = apiInstance.youtube.tests.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TestsApi#youtube.tests.insert");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TestsApi;

public class TestsApiExample {

    public static void main(String[] args) {
        TestsApi apiInstance = new TestsApi();
        array[String] part = ; // array[String] | 
        TestItem body = ; // TestItem | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            TestItem result = apiInstance.youtube.tests.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TestsApi#youtube.tests.insert");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // 
TestItem *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

TestsApi *apiInstance = [[TestsApi alloc] init];

[apiInstance youtube.tests.insertWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
              completionHandler: ^(TestItem output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.TestsApi()
var part = ; // {{array[String]}} 
var opts = { 
  'body':  // {{TestItem}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.tests.insert(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.tests.insertExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new TestsApi();
            var part = new array[String](); // array[String] | 
            var body = new TestItem(); // TestItem |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 

            try
            {
                TestItem result = apiInstance.youtube.tests.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TestsApi.youtube.tests.insert: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiTestsApi();
$part = ; // array[String] | 
$body = ; // TestItem | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").

try {
    $result = $api_instance->youtube.tests.insert($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TestsApi->youtube.tests.insert: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TestsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::TestsApi->new();
my $part = []; # array[String] | 
my $body = WWW::SwaggerClient::Object::TestItem->new(); # TestItem | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").

eval { 
    my $result = $api_instance->youtube.tests.insert(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TestsApi->youtube.tests.insert: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.TestsApi()
part =  # array[String] | 
body =  # TestItem |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

try: 
    api_response = api_instance.youtube/tests/insert(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TestsApi->youtube.tests.insert: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
Required

Responses

Status: 200 - Successful response


Thumbnails

youtube.thumbnails.set

As this is not an insert in a strict sense (it supports uploading/setting of a thumbnail for multiple videos, which doesn't result in creation of a single resource), I use a custom verb here.


/youtube/v3/thumbnails/set

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/thumbnails/set?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&videoId=&onBehalfOfContentOwner="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ThumbnailsApi;

import java.io.File;
import java.util.*;

public class ThumbnailsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        ThumbnailsApi apiInstance = new ThumbnailsApi();
        String videoId = videoId_example; // String | Returns the Thumbnail with the given video IDs for Stubby or Apiary.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            ThumbnailSetResponse result = apiInstance.youtube.thumbnails.set(videoId, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ThumbnailsApi#youtube.thumbnails.set");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ThumbnailsApi;

public class ThumbnailsApiExample {

    public static void main(String[] args) {
        ThumbnailsApi apiInstance = new ThumbnailsApi();
        String videoId = videoId_example; // String | Returns the Thumbnail with the given video IDs for Stubby or Apiary.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            ThumbnailSetResponse result = apiInstance.youtube.thumbnails.set(videoId, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ThumbnailsApi#youtube.thumbnails.set");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *videoId = videoId_example; // Returns the Thumbnail with the given video IDs for Stubby or Apiary.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

ThumbnailsApi *apiInstance = [[ThumbnailsApi alloc] init];

[apiInstance youtube.thumbnails.setWith:videoId
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
              completionHandler: ^(ThumbnailSetResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.ThumbnailsApi()
var videoId = videoId_example; // {{String}} Returns the Thumbnail with the given video IDs for Stubby or Apiary.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.thumbnails.set(videoId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.thumbnails.setExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ThumbnailsApi();
            var videoId = videoId_example;  // String | Returns the Thumbnail with the given video IDs for Stubby or Apiary.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 

            try
            {
                ThumbnailSetResponse result = apiInstance.youtube.thumbnails.set(videoId, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ThumbnailsApi.youtube.thumbnails.set: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiThumbnailsApi();
$videoId = videoId_example; // String | Returns the Thumbnail with the given video IDs for Stubby or Apiary.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.

try {
    $result = $api_instance->youtube.thumbnails.set($videoId, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ThumbnailsApi->youtube.thumbnails.set: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ThumbnailsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ThumbnailsApi->new();
my $videoId = videoId_example; # String | Returns the Thumbnail with the given video IDs for Stubby or Apiary.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.

eval { 
    my $result = $api_instance->youtube.thumbnails.set(videoId => $videoId, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ThumbnailsApi->youtube.thumbnails.set: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ThumbnailsApi()
videoId = videoId_example # String | Returns the Thumbnail with the given video IDs for Stubby or Apiary.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

try: 
    api_response = api_instance.youtube/thumbnails/set(videoId, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ThumbnailsApi->youtube.thumbnails.set: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
videoId*
String
Returns the Thumbnail with the given video IDs for Stubby or Apiary.
Required
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.

Responses

Status: 200 - Successful response


VideoAbuseReportReasons

youtube.videoAbuseReportReasons.list

Retrieves a list of resources, possibly filtered.


/youtube/v3/videoAbuseReportReasons

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/videoAbuseReportReasons?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&hl="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VideoAbuseReportReasonsApi;

import java.io.File;
import java.util.*;

public class VideoAbuseReportReasonsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        VideoAbuseReportReasonsApi apiInstance = new VideoAbuseReportReasonsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies the videoCategory resource parts that the API response will include. Supported values are id and snippet.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String hl = hl_example; // String | 
        try {
            VideoAbuseReportReasonListResponse result = apiInstance.youtube.videoAbuseReportReasons.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, hl);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideoAbuseReportReasonsApi#youtube.videoAbuseReportReasons.list");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VideoAbuseReportReasonsApi;

public class VideoAbuseReportReasonsApiExample {

    public static void main(String[] args) {
        VideoAbuseReportReasonsApi apiInstance = new VideoAbuseReportReasonsApi();
        array[String] part = ; // array[String] | The *part* parameter specifies the videoCategory resource parts that the API response will include. Supported values are id and snippet.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String hl = hl_example; // String | 
        try {
            VideoAbuseReportReasonListResponse result = apiInstance.youtube.videoAbuseReportReasons.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, hl);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideoAbuseReportReasonsApi#youtube.videoAbuseReportReasons.list");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter specifies the videoCategory resource parts that the API response will include. Supported values are id and snippet.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *hl = hl_example; //  (optional)

VideoAbuseReportReasonsApi *apiInstance = [[VideoAbuseReportReasonsApi alloc] init];

[apiInstance youtube.videoAbuseReportReasons.listWith:part
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    hl:hl
              completionHandler: ^(VideoAbuseReportReasonListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.VideoAbuseReportReasonsApi()
var part = ; // {{array[String]}} The *part* parameter specifies the videoCategory resource parts that the API response will include. Supported values are id and snippet.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'hl': hl_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.videoAbuseReportReasons.list(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.videoAbuseReportReasons.listExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new VideoAbuseReportReasonsApi();
            var part = new array[String](); // array[String] | The *part* parameter specifies the videoCategory resource parts that the API response will include. Supported values are id and snippet.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var hl = hl_example;  // String |  (optional) 

            try
            {
                VideoAbuseReportReasonListResponse result = apiInstance.youtube.videoAbuseReportReasons.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, hl);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VideoAbuseReportReasonsApi.youtube.videoAbuseReportReasons.list: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiVideoAbuseReportReasonsApi();
$part = ; // array[String] | The *part* parameter specifies the videoCategory resource parts that the API response will include. Supported values are id and snippet.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$hl = hl_example; // String | 

try {
    $result = $api_instance->youtube.videoAbuseReportReasons.list($part, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $hl);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VideoAbuseReportReasonsApi->youtube.videoAbuseReportReasons.list: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::VideoAbuseReportReasonsApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::VideoAbuseReportReasonsApi->new();
my $part = []; # array[String] | The *part* parameter specifies the videoCategory resource parts that the API response will include. Supported values are id and snippet.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $hl = hl_example; # String | 

eval { 
    my $result = $api_instance->youtube.videoAbuseReportReasons.list(part => $part, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, hl => $hl);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VideoAbuseReportReasonsApi->youtube.videoAbuseReportReasons.list: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.VideoAbuseReportReasonsApi()
part =  # array[String] | The *part* parameter specifies the videoCategory resource parts that the API response will include. Supported values are id and snippet.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
hl = hl_example # String |  (optional)

try: 
    api_response = api_instance.youtube/video_abuse_report_reasons/list(part, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, hl=hl)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VideoAbuseReportReasonsApi->youtube.videoAbuseReportReasons.list: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter specifies the videoCategory resource parts that the API response will include. Supported values are id and snippet.
Required
hl
String

Responses

Status: 200 - Successful response


VideoCategories

youtube.videoCategories.list

Retrieves a list of resources, possibly filtered.


/youtube/v3/videoCategories

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/videoCategories?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&hl=&id=®ionCode="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VideoCategoriesApi;

import java.io.File;
import java.util.*;

public class VideoCategoriesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        VideoCategoriesApi apiInstance = new VideoCategoriesApi();
        array[String] part = ; // array[String] | The *part* parameter specifies the videoCategory resource properties that the API response will include. Set the parameter value to snippet.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String hl = hl_example; // String | 
        array[String] id = ; // array[String] | Returns the video categories with the given IDs for Stubby or Apiary.
        String regionCode = regionCode_example; // String | 
        try {
            VideoCategoryListResponse result = apiInstance.youtube.videoCategories.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, hl, id, regionCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideoCategoriesApi#youtube.videoCategories.list");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VideoCategoriesApi;

public class VideoCategoriesApiExample {

    public static void main(String[] args) {
        VideoCategoriesApi apiInstance = new VideoCategoriesApi();
        array[String] part = ; // array[String] | The *part* parameter specifies the videoCategory resource properties that the API response will include. Set the parameter value to snippet.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String hl = hl_example; // String | 
        array[String] id = ; // array[String] | Returns the video categories with the given IDs for Stubby or Apiary.
        String regionCode = regionCode_example; // String | 
        try {
            VideoCategoryListResponse result = apiInstance.youtube.videoCategories.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, hl, id, regionCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideoCategoriesApi#youtube.videoCategories.list");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter specifies the videoCategory resource properties that the API response will include. Set the parameter value to snippet.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *hl = hl_example; //  (optional)
array[String] *id = ; // Returns the video categories with the given IDs for Stubby or Apiary. (optional)
String *regionCode = regionCode_example; //  (optional)

VideoCategoriesApi *apiInstance = [[VideoCategoriesApi alloc] init];

[apiInstance youtube.videoCategories.listWith:part
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    hl:hl
    id:id
    regionCode:regionCode
              completionHandler: ^(VideoCategoryListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.VideoCategoriesApi()
var part = ; // {{array[String]}} The *part* parameter specifies the videoCategory resource properties that the API response will include. Set the parameter value to snippet.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'hl': hl_example, // {{String}} 
  'id': , // {{array[String]}} Returns the video categories with the given IDs for Stubby or Apiary.
  'regionCode': regionCode_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.videoCategories.list(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.videoCategories.listExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new VideoCategoriesApi();
            var part = new array[String](); // array[String] | The *part* parameter specifies the videoCategory resource properties that the API response will include. Set the parameter value to snippet.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var hl = hl_example;  // String |  (optional) 
            var id = new array[String](); // array[String] | Returns the video categories with the given IDs for Stubby or Apiary. (optional) 
            var regionCode = regionCode_example;  // String |  (optional) 

            try
            {
                VideoCategoryListResponse result = apiInstance.youtube.videoCategories.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, hl, id, regionCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VideoCategoriesApi.youtube.videoCategories.list: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiVideoCategoriesApi();
$part = ; // array[String] | The *part* parameter specifies the videoCategory resource properties that the API response will include. Set the parameter value to snippet.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$hl = hl_example; // String | 
$id = ; // array[String] | Returns the video categories with the given IDs for Stubby or Apiary.
$regionCode = regionCode_example; // String | 

try {
    $result = $api_instance->youtube.videoCategories.list($part, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $hl, $id, $regionCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VideoCategoriesApi->youtube.videoCategories.list: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::VideoCategoriesApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::VideoCategoriesApi->new();
my $part = []; # array[String] | The *part* parameter specifies the videoCategory resource properties that the API response will include. Set the parameter value to snippet.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $hl = hl_example; # String | 
my $id = []; # array[String] | Returns the video categories with the given IDs for Stubby or Apiary.
my $regionCode = regionCode_example; # String | 

eval { 
    my $result = $api_instance->youtube.videoCategories.list(part => $part, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, hl => $hl, id => $id, regionCode => $regionCode);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VideoCategoriesApi->youtube.videoCategories.list: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.VideoCategoriesApi()
part =  # array[String] | The *part* parameter specifies the videoCategory resource properties that the API response will include. Set the parameter value to snippet.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
hl = hl_example # String |  (optional)
id =  # array[String] | Returns the video categories with the given IDs for Stubby or Apiary. (optional)
regionCode = regionCode_example # String |  (optional)

try: 
    api_response = api_instance.youtube/video_categories/list(part, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, hl=hl, id=id, regionCode=regionCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VideoCategoriesApi->youtube.videoCategories.list: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter specifies the videoCategory resource properties that the API response will include. Set the parameter value to snippet.
Required
hl
String
id
array[String]
Returns the video categories with the given IDs for Stubby or Apiary.
regionCode
String

Responses

Status: 200 - Successful response


Videos

youtube.videos.delete

Deletes a resource.


/youtube/v3/videos

Usage and SDK Samples

curl -X DELETE\
\
\
"https://youtube.googleapis.com//youtube/v3/videos?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&id=&onBehalfOfContentOwner="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VideosApi;

import java.io.File;
import java.util.*;

public class VideosApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        VideosApi apiInstance = new VideosApi();
        String id = id_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            apiInstance.youtube.videos.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideosApi#youtube.videos.delete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VideosApi;

public class VideosApiExample {

    public static void main(String[] args) {
        VideosApi apiInstance = new VideosApi();
        String id = id_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            apiInstance.youtube.videos.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideosApi#youtube.videos.delete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *id = id_example; // 
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

VideosApi *apiInstance = [[VideosApi alloc] init];

[apiInstance youtube.videos.deleteWith:id
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.VideosApi()
var id = id_example; // {{String}} 
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.youtube.videos.delete(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.videos.deleteExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new VideosApi();
            var id = id_example;  // String | 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 

            try
            {
                apiInstance.youtube.videos.delete(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VideosApi.youtube.videos.delete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiVideosApi();
$id = id_example; // String | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.

try {
    $api_instance->youtube.videos.delete($id, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner);
} catch (Exception $e) {
    echo 'Exception when calling VideosApi->youtube.videos.delete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::VideosApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::VideosApi->new();
my $id = id_example; # String | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.

eval { 
    $api_instance->youtube.videos.delete(id => $id, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner);
};
if ($@) {
    warn "Exception when calling VideosApi->youtube.videos.delete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.VideosApi()
id = id_example # String | 
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

try: 
    api_instance.youtube/videos/delete(id, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner)
except ApiException as e:
    print("Exception when calling VideosApi->youtube.videos.delete: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
id*
String
Required
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.

Responses

Status: 200 - Successful response


youtube.videos.getRating

Retrieves the ratings that the authorized user gave to a list of specified videos.


/youtube/v3/videos/getRating

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/videos/getRating?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&id=&onBehalfOfContentOwner="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VideosApi;

import java.io.File;
import java.util.*;

public class VideosApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        VideosApi apiInstance = new VideosApi();
        array[String] id = ; // array[String] | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            VideoRatingListResponse result = apiInstance.youtube.videos.getRating(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideosApi#youtube.videos.getRating");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VideosApi;

public class VideosApiExample {

    public static void main(String[] args) {
        VideosApi apiInstance = new VideosApi();
        array[String] id = ; // array[String] | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            VideoRatingListResponse result = apiInstance.youtube.videos.getRating(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideosApi#youtube.videos.getRating");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *id = ; // 
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

VideosApi *apiInstance = [[VideosApi alloc] init];

[apiInstance youtube.videos.getRatingWith:id
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
              completionHandler: ^(VideoRatingListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.VideosApi()
var id = ; // {{array[String]}} 
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.videos.getRating(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.videos.getRatingExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new VideosApi();
            var id = new array[String](); // array[String] | 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 

            try
            {
                VideoRatingListResponse result = apiInstance.youtube.videos.getRating(id, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VideosApi.youtube.videos.getRating: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiVideosApi();
$id = ; // array[String] | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

try {
    $result = $api_instance->youtube.videos.getRating($id, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VideosApi->youtube.videos.getRating: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::VideosApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::VideosApi->new();
my $id = []; # array[String] | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

eval { 
    my $result = $api_instance->youtube.videos.getRating(id => $id, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VideosApi->youtube.videos.getRating: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.VideosApi()
id =  # array[String] | 
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

try: 
    api_response = api_instance.youtube/videos/get_rating(id, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VideosApi->youtube.videos.getRating: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
id*
array[String]
Required
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

Responses

Status: 200 - Successful response


youtube.videos.insert

Inserts a new resource into this collection.


/youtube/v3/videos

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/octet-stream,video/1d-interleaved-parityfec,video/3gpp,video/3gpp-tt,video/3gpp2,video/bmpeg,video/bt656,video/celb,video/dv,video/encaprtp,video/flexfec,video/h261,video/h263,video/h263-1998,video/h263-2000,video/h264,video/h264-rcdo,video/h264-svc,video/h265,video/iso.segment,video/jpeg,video/jpeg2000,video/jpm,video/mj2,video/mp1s,video/mp2p,video/mp2t,video/mp4,video/mp4v-es,video/mpeg,video/mpeg4-generic,video/mpv,video/nv,video/ogg,video/parityfec,video/pointer,video/quicktime,video/raptorfec,video/raw,video/rtp-enc-aescm128,video/rtploopback,video/rtx,video/smpte291,video/smpte292m,video/ulpfec,video/vc1,video/vc2,video/vnd.cctv,video/vnd.dece.hd,video/vnd.dece.mobile,video/vnd.dece.mp4,video/vnd.dece.pd,video/vnd.dece.sd,video/vnd.dece.video,video/vnd.directv.mpeg,video/vnd.directv.mpeg-tts,video/vnd.dlna.mpeg-tts,video/vnd.dvb.file,video/vnd.fvt,video/vnd.hns.video,video/vnd.iptvforum.1dparityfec-1010,video/vnd.iptvforum.1dparityfec-2005,video/vnd.iptvforum.2dparityfec-1010,video/vnd.iptvforum.2dparityfec-2005,video/vnd.iptvforum.ttsavc,video/vnd.iptvforum.ttsmpeg2,video/vnd.motorola.video,video/vnd.motorola.videop,video/vnd.mpegurl,video/vnd.ms-playready.media.pyv,video/vnd.nokia.interleaved-multimedia,video/vnd.nokia.mp4vr,video/vnd.nokia.videovoip,video/vnd.objectvideo,video/vnd.radgamettools.bink,video/vnd.radgamettools.smacker,video/vnd.sealed.mpeg1,video/vnd.sealed.mpeg4,video/vnd.sealed.swf,video/vnd.sealedmedia.softseal.mov,video/vnd.uvvu.mp4,video/vnd.vivo,video/vnd.youtube.yt,video/vp8,video/webm,video/x-f4v,video/x-fli,video/x-flv,video/x-m4v,video/x-matroska,video/x-mng,video/x-ms-asf,video/x-ms-vob,video/x-ms-wm,video/x-ms-wmv,video/x-ms-wmx,video/x-ms-wvx,video/x-msvideo,video/x-sgi-movie,video/x-smv"\
"https://youtube.googleapis.com//youtube/v3/videos?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&autoLevels=¬ifySubscribers=&onBehalfOfContentOwner=&onBehalfOfContentOwnerChannel=&stabilize="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VideosApi;

import java.io.File;
import java.util.*;

public class VideosApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        VideosApi apiInstance = new VideosApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that not all parts contain properties that can be set when inserting or updating a video. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.
        Video body = ; // Video | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        Boolean autoLevels = true; // Boolean | Should auto-levels be applied to the upload.
        Boolean notifySubscribers = true; // Boolean | Notify the channel subscribers about the new video. As default, the notification is enabled.
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        Boolean stabilize = true; // Boolean | Should stabilize be applied to the upload.
        try {
            Video result = apiInstance.youtube.videos.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, autoLevels, notifySubscribers, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel, stabilize);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideosApi#youtube.videos.insert");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VideosApi;

public class VideosApiExample {

    public static void main(String[] args) {
        VideosApi apiInstance = new VideosApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that not all parts contain properties that can be set when inserting or updating a video. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.
        Video body = ; // Video | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        Boolean autoLevels = true; // Boolean | Should auto-levels be applied to the upload.
        Boolean notifySubscribers = true; // Boolean | Notify the channel subscribers about the new video. As default, the notification is enabled.
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        Boolean stabilize = true; // Boolean | Should stabilize be applied to the upload.
        try {
            Video result = apiInstance.youtube.videos.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, autoLevels, notifySubscribers, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel, stabilize);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideosApi#youtube.videos.insert");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that not all parts contain properties that can be set when inserting or updating a video. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.
Video *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
Boolean *autoLevels = true; // Should auto-levels be applied to the upload. (optional)
Boolean *notifySubscribers = true; // Notify the channel subscribers about the new video. As default, the notification is enabled. (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
String *onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)
Boolean *stabilize = true; // Should stabilize be applied to the upload. (optional)

VideosApi *apiInstance = [[VideosApi alloc] init];

[apiInstance youtube.videos.insertWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    autoLevels:autoLevels
    notifySubscribers:notifySubscribers
    onBehalfOfContentOwner:onBehalfOfContentOwner
    onBehalfOfContentOwnerChannel:onBehalfOfContentOwnerChannel
    stabilize:stabilize
              completionHandler: ^(Video output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.VideosApi()
var part = ; // {{array[String]}} The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that not all parts contain properties that can be set when inserting or updating a video. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.
var opts = { 
  'body':  // {{Video}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'autoLevels': true // {{Boolean}} Should auto-levels be applied to the upload.
  'notifySubscribers': true // {{Boolean}} Notify the channel subscribers about the new video. As default, the notification is enabled.
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
  'onBehalfOfContentOwnerChannel': onBehalfOfContentOwnerChannel_example // {{String}} This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
  'stabilize': true // {{Boolean}} Should stabilize be applied to the upload.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.videos.insert(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.videos.insertExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new VideosApi();
            var part = new array[String](); // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that not all parts contain properties that can be set when inserting or updating a video. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.
            var body = new Video(); // Video |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var autoLevels = true;  // Boolean | Should auto-levels be applied to the upload. (optional) 
            var notifySubscribers = true;  // Boolean | Notify the channel subscribers about the new video. As default, the notification is enabled. (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 
            var onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example;  // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional) 
            var stabilize = true;  // Boolean | Should stabilize be applied to the upload. (optional) 

            try
            {
                Video result = apiInstance.youtube.videos.insert(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, autoLevels, notifySubscribers, onBehalfOfContentOwner, onBehalfOfContentOwnerChannel, stabilize);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VideosApi.youtube.videos.insert: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiVideosApi();
$part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that not all parts contain properties that can be set when inserting or updating a video. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.
$body = ; // Video | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$autoLevels = true; // Boolean | Should auto-levels be applied to the upload.
$notifySubscribers = true; // Boolean | Notify the channel subscribers about the new video. As default, the notification is enabled.
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
$onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; // String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
$stabilize = true; // Boolean | Should stabilize be applied to the upload.

try {
    $result = $api_instance->youtube.videos.insert($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $autoLevels, $notifySubscribers, $onBehalfOfContentOwner, $onBehalfOfContentOwnerChannel, $stabilize);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VideosApi->youtube.videos.insert: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::VideosApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::VideosApi->new();
my $part = []; # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that not all parts contain properties that can be set when inserting or updating a video. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.
my $body = WWW::SwaggerClient::Object::Video->new(); # Video | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $autoLevels = true; # Boolean | Should auto-levels be applied to the upload.
my $notifySubscribers = true; # Boolean | Notify the channel subscribers about the new video. As default, the notification is enabled.
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
my $onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example; # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
my $stabilize = true; # Boolean | Should stabilize be applied to the upload.

eval { 
    my $result = $api_instance->youtube.videos.insert(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, autoLevels => $autoLevels, notifySubscribers => $notifySubscribers, onBehalfOfContentOwner => $onBehalfOfContentOwner, onBehalfOfContentOwnerChannel => $onBehalfOfContentOwnerChannel, stabilize => $stabilize);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VideosApi->youtube.videos.insert: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.VideosApi()
part =  # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that not all parts contain properties that can be set when inserting or updating a video. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.
body =  # Video |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
autoLevels = true # Boolean | Should auto-levels be applied to the upload. (optional)
notifySubscribers = true # Boolean | Notify the channel subscribers about the new video. As default, the notification is enabled. (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel_example # String | This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. (optional)
stabilize = true # Boolean | Should stabilize be applied to the upload. (optional)

try: 
    api_response = api_instance.youtube/videos/insert(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, autoLevels=autoLevels, notifySubscribers=notifySubscribers, onBehalfOfContentOwner=onBehalfOfContentOwner, onBehalfOfContentOwnerChannel=onBehalfOfContentOwnerChannel, stabilize=stabilize)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VideosApi->youtube.videos.insert: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that not all parts contain properties that can be set when inserting or updating a video. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.
Required
autoLevels
Boolean
Should auto-levels be applied to the upload.
notifySubscribers
Boolean
Notify the channel subscribers about the new video. As default, the notification is enabled.
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
onBehalfOfContentOwnerChannel
String
This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
stabilize
Boolean
Should stabilize be applied to the upload.

Responses

Status: 200 - Successful response


youtube.videos.list

Retrieves a list of resources, possibly filtered.


/youtube/v3/videos

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json"\
"https://youtube.googleapis.com//youtube/v3/videos?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&chart=&hl=&id=&locale=&maxHeight=&maxResults=&maxWidth=&myRating=&onBehalfOfContentOwner=&pageToken=®ionCode=&videoCategoryId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VideosApi;

import java.io.File;
import java.util.*;

public class VideosApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        VideosApi apiInstance = new VideosApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more video resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a video resource, the snippet property contains the channelId, title, description, tags, and categoryId properties. As such, if you set *part=snippet*, the API response will contain all of those properties.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String chart = chart_example; // String | Return the videos that are in the specified chart.
        String hl = hl_example; // String | Stands for "host language". Specifies the localization language of the metadata to be filled into snippet.localized. The field is filled with the default metadata if there is no localization in the specified language. The parameter value must be a language code included in the list returned by the i18nLanguages.list method (e.g. en_US, es_MX).
        array[String] id = ; // array[String] | Return videos with the given ids.
        String locale = locale_example; // String | 
        Integer maxHeight = 56; // Integer | 
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. *Note:* This parameter is supported for use in conjunction with the myRating and chart parameters, but it is not supported for use in conjunction with the id parameter.
        Integer maxWidth = 56; // Integer | Return the player with maximum height specified in
        String myRating = myRating_example; // String | Return videos liked/disliked by the authenticated user. Does not support RateType.RATED_TYPE_NONE.
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. *Note:* This parameter is supported for use in conjunction with the myRating and chart parameters, but it is not supported for use in conjunction with the id parameter.
        String regionCode = regionCode_example; // String | Use a chart that is specific to the specified region
        String videoCategoryId = videoCategoryId_example; // String | Use chart that is specific to the specified video category
        try {
            VideoListResponse result = apiInstance.youtube.videos.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, chart, hl, id, locale, maxHeight, maxResults, maxWidth, myRating, onBehalfOfContentOwner, pageToken, regionCode, videoCategoryId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideosApi#youtube.videos.list");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VideosApi;

public class VideosApiExample {

    public static void main(String[] args) {
        VideosApi apiInstance = new VideosApi();
        array[String] part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more video resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a video resource, the snippet property contains the channelId, title, description, tags, and categoryId properties. As such, if you set *part=snippet*, the API response will contain all of those properties.
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String chart = chart_example; // String | Return the videos that are in the specified chart.
        String hl = hl_example; // String | Stands for "host language". Specifies the localization language of the metadata to be filled into snippet.localized. The field is filled with the default metadata if there is no localization in the specified language. The parameter value must be a language code included in the list returned by the i18nLanguages.list method (e.g. en_US, es_MX).
        array[String] id = ; // array[String] | Return videos with the given ids.
        String locale = locale_example; // String | 
        Integer maxHeight = 56; // Integer | 
        Integer maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. *Note:* This parameter is supported for use in conjunction with the myRating and chart parameters, but it is not supported for use in conjunction with the id parameter.
        Integer maxWidth = 56; // Integer | Return the player with maximum height specified in
        String myRating = myRating_example; // String | Return videos liked/disliked by the authenticated user. Does not support RateType.RATED_TYPE_NONE.
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        String pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. *Note:* This parameter is supported for use in conjunction with the myRating and chart parameters, but it is not supported for use in conjunction with the id parameter.
        String regionCode = regionCode_example; // String | Use a chart that is specific to the specified region
        String videoCategoryId = videoCategoryId_example; // String | Use chart that is specific to the specified video category
        try {
            VideoListResponse result = apiInstance.youtube.videos.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, chart, hl, id, locale, maxHeight, maxResults, maxWidth, myRating, onBehalfOfContentOwner, pageToken, regionCode, videoCategoryId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideosApi#youtube.videos.list");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter specifies a comma-separated list of one or more video resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a video resource, the snippet property contains the channelId, title, description, tags, and categoryId properties. As such, if you set *part=snippet*, the API response will contain all of those properties.
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *chart = chart_example; // Return the videos that are in the specified chart. (optional)
String *hl = hl_example; // Stands for "host language". Specifies the localization language of the metadata to be filled into snippet.localized. The field is filled with the default metadata if there is no localization in the specified language. The parameter value must be a language code included in the list returned by the i18nLanguages.list method (e.g. en_US, es_MX). (optional)
array[String] *id = ; // Return videos with the given ids. (optional)
String *locale = locale_example; //  (optional)
Integer *maxHeight = 56; //  (optional)
Integer *maxResults = 56; // The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. *Note:* This parameter is supported for use in conjunction with the myRating and chart parameters, but it is not supported for use in conjunction with the id parameter. (optional)
Integer *maxWidth = 56; // Return the player with maximum height specified in (optional)
String *myRating = myRating_example; // Return videos liked/disliked by the authenticated user. Does not support RateType.RATED_TYPE_NONE. (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
String *pageToken = pageToken_example; // The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. *Note:* This parameter is supported for use in conjunction with the myRating and chart parameters, but it is not supported for use in conjunction with the id parameter. (optional)
String *regionCode = regionCode_example; // Use a chart that is specific to the specified region (optional)
String *videoCategoryId = videoCategoryId_example; // Use chart that is specific to the specified video category (optional)

VideosApi *apiInstance = [[VideosApi alloc] init];

[apiInstance youtube.videos.listWith:part
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    chart:chart
    hl:hl
    id:id
    locale:locale
    maxHeight:maxHeight
    maxResults:maxResults
    maxWidth:maxWidth
    myRating:myRating
    onBehalfOfContentOwner:onBehalfOfContentOwner
    pageToken:pageToken
    regionCode:regionCode
    videoCategoryId:videoCategoryId
              completionHandler: ^(VideoListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.VideosApi()
var part = ; // {{array[String]}} The *part* parameter specifies a comma-separated list of one or more video resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a video resource, the snippet property contains the channelId, title, description, tags, and categoryId properties. As such, if you set *part=snippet*, the API response will contain all of those properties.
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'chart': chart_example, // {{String}} Return the videos that are in the specified chart.
  'hl': hl_example, // {{String}} Stands for "host language". Specifies the localization language of the metadata to be filled into snippet.localized. The field is filled with the default metadata if there is no localization in the specified language. The parameter value must be a language code included in the list returned by the i18nLanguages.list method (e.g. en_US, es_MX).
  'id': , // {{array[String]}} Return videos with the given ids.
  'locale': locale_example, // {{String}} 
  'maxHeight': 56, // {{Integer}} 
  'maxResults': 56, // {{Integer}} The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. *Note:* This parameter is supported for use in conjunction with the myRating and chart parameters, but it is not supported for use in conjunction with the id parameter.
  'maxWidth': 56, // {{Integer}} Return the player with maximum height specified in
  'myRating': myRating_example, // {{String}} Return videos liked/disliked by the authenticated user. Does not support RateType.RATED_TYPE_NONE.
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example, // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
  'pageToken': pageToken_example, // {{String}} The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. *Note:* This parameter is supported for use in conjunction with the myRating and chart parameters, but it is not supported for use in conjunction with the id parameter.
  'regionCode': regionCode_example, // {{String}} Use a chart that is specific to the specified region
  'videoCategoryId': videoCategoryId_example // {{String}} Use chart that is specific to the specified video category
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.videos.list(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.videos.listExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new VideosApi();
            var part = new array[String](); // array[String] | The *part* parameter specifies a comma-separated list of one or more video resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a video resource, the snippet property contains the channelId, title, description, tags, and categoryId properties. As such, if you set *part=snippet*, the API response will contain all of those properties.
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var chart = chart_example;  // String | Return the videos that are in the specified chart. (optional) 
            var hl = hl_example;  // String | Stands for "host language". Specifies the localization language of the metadata to be filled into snippet.localized. The field is filled with the default metadata if there is no localization in the specified language. The parameter value must be a language code included in the list returned by the i18nLanguages.list method (e.g. en_US, es_MX). (optional) 
            var id = new array[String](); // array[String] | Return videos with the given ids. (optional) 
            var locale = locale_example;  // String |  (optional) 
            var maxHeight = 56;  // Integer |  (optional) 
            var maxResults = 56;  // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. *Note:* This parameter is supported for use in conjunction with the myRating and chart parameters, but it is not supported for use in conjunction with the id parameter. (optional) 
            var maxWidth = 56;  // Integer | Return the player with maximum height specified in (optional) 
            var myRating = myRating_example;  // String | Return videos liked/disliked by the authenticated user. Does not support RateType.RATED_TYPE_NONE. (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 
            var pageToken = pageToken_example;  // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. *Note:* This parameter is supported for use in conjunction with the myRating and chart parameters, but it is not supported for use in conjunction with the id parameter. (optional) 
            var regionCode = regionCode_example;  // String | Use a chart that is specific to the specified region (optional) 
            var videoCategoryId = videoCategoryId_example;  // String | Use chart that is specific to the specified video category (optional) 

            try
            {
                VideoListResponse result = apiInstance.youtube.videos.list(part, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, chart, hl, id, locale, maxHeight, maxResults, maxWidth, myRating, onBehalfOfContentOwner, pageToken, regionCode, videoCategoryId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VideosApi.youtube.videos.list: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiVideosApi();
$part = ; // array[String] | The *part* parameter specifies a comma-separated list of one or more video resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a video resource, the snippet property contains the channelId, title, description, tags, and categoryId properties. As such, if you set *part=snippet*, the API response will contain all of those properties.
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$chart = chart_example; // String | Return the videos that are in the specified chart.
$hl = hl_example; // String | Stands for "host language". Specifies the localization language of the metadata to be filled into snippet.localized. The field is filled with the default metadata if there is no localization in the specified language. The parameter value must be a language code included in the list returned by the i18nLanguages.list method (e.g. en_US, es_MX).
$id = ; // array[String] | Return videos with the given ids.
$locale = locale_example; // String | 
$maxHeight = 56; // Integer | 
$maxResults = 56; // Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. *Note:* This parameter is supported for use in conjunction with the myRating and chart parameters, but it is not supported for use in conjunction with the id parameter.
$maxWidth = 56; // Integer | Return the player with maximum height specified in
$myRating = myRating_example; // String | Return videos liked/disliked by the authenticated user. Does not support RateType.RATED_TYPE_NONE.
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
$pageToken = pageToken_example; // String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. *Note:* This parameter is supported for use in conjunction with the myRating and chart parameters, but it is not supported for use in conjunction with the id parameter.
$regionCode = regionCode_example; // String | Use a chart that is specific to the specified region
$videoCategoryId = videoCategoryId_example; // String | Use chart that is specific to the specified video category

try {
    $result = $api_instance->youtube.videos.list($part, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $chart, $hl, $id, $locale, $maxHeight, $maxResults, $maxWidth, $myRating, $onBehalfOfContentOwner, $pageToken, $regionCode, $videoCategoryId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VideosApi->youtube.videos.list: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::VideosApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::VideosApi->new();
my $part = []; # array[String] | The *part* parameter specifies a comma-separated list of one or more video resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a video resource, the snippet property contains the channelId, title, description, tags, and categoryId properties. As such, if you set *part=snippet*, the API response will contain all of those properties.
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $chart = chart_example; # String | Return the videos that are in the specified chart.
my $hl = hl_example; # String | Stands for "host language". Specifies the localization language of the metadata to be filled into snippet.localized. The field is filled with the default metadata if there is no localization in the specified language. The parameter value must be a language code included in the list returned by the i18nLanguages.list method (e.g. en_US, es_MX).
my $id = []; # array[String] | Return videos with the given ids.
my $locale = locale_example; # String | 
my $maxHeight = 56; # Integer | 
my $maxResults = 56; # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. *Note:* This parameter is supported for use in conjunction with the myRating and chart parameters, but it is not supported for use in conjunction with the id parameter.
my $maxWidth = 56; # Integer | Return the player with maximum height specified in
my $myRating = myRating_example; # String | Return videos liked/disliked by the authenticated user. Does not support RateType.RATED_TYPE_NONE.
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
my $pageToken = pageToken_example; # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. *Note:* This parameter is supported for use in conjunction with the myRating and chart parameters, but it is not supported for use in conjunction with the id parameter.
my $regionCode = regionCode_example; # String | Use a chart that is specific to the specified region
my $videoCategoryId = videoCategoryId_example; # String | Use chart that is specific to the specified video category

eval { 
    my $result = $api_instance->youtube.videos.list(part => $part, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, chart => $chart, hl => $hl, id => $id, locale => $locale, maxHeight => $maxHeight, maxResults => $maxResults, maxWidth => $maxWidth, myRating => $myRating, onBehalfOfContentOwner => $onBehalfOfContentOwner, pageToken => $pageToken, regionCode => $regionCode, videoCategoryId => $videoCategoryId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VideosApi->youtube.videos.list: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.VideosApi()
part =  # array[String] | The *part* parameter specifies a comma-separated list of one or more video resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a video resource, the snippet property contains the channelId, title, description, tags, and categoryId properties. As such, if you set *part=snippet*, the API response will contain all of those properties.
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
chart = chart_example # String | Return the videos that are in the specified chart. (optional)
hl = hl_example # String | Stands for "host language". Specifies the localization language of the metadata to be filled into snippet.localized. The field is filled with the default metadata if there is no localization in the specified language. The parameter value must be a language code included in the list returned by the i18nLanguages.list method (e.g. en_US, es_MX). (optional)
id =  # array[String] | Return videos with the given ids. (optional)
locale = locale_example # String |  (optional)
maxHeight = 56 # Integer |  (optional)
maxResults = 56 # Integer | The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. *Note:* This parameter is supported for use in conjunction with the myRating and chart parameters, but it is not supported for use in conjunction with the id parameter. (optional)
maxWidth = 56 # Integer | Return the player with maximum height specified in (optional)
myRating = myRating_example # String | Return videos liked/disliked by the authenticated user. Does not support RateType.RATED_TYPE_NONE. (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)
pageToken = pageToken_example # String | The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. *Note:* This parameter is supported for use in conjunction with the myRating and chart parameters, but it is not supported for use in conjunction with the id parameter. (optional)
regionCode = regionCode_example # String | Use a chart that is specific to the specified region (optional)
videoCategoryId = videoCategoryId_example # String | Use chart that is specific to the specified video category (optional)

try: 
    api_response = api_instance.youtube/videos/list(part, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, chart=chart, hl=hl, id=id, locale=locale, maxHeight=maxHeight, maxResults=maxResults, maxWidth=maxWidth, myRating=myRating, onBehalfOfContentOwner=onBehalfOfContentOwner, pageToken=pageToken, regionCode=regionCode, videoCategoryId=videoCategoryId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VideosApi->youtube.videos.list: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter specifies a comma-separated list of one or more video resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a video resource, the snippet property contains the channelId, title, description, tags, and categoryId properties. As such, if you set *part=snippet*, the API response will contain all of those properties.
Required
chart
String
Return the videos that are in the specified chart.
hl
String
Stands for "host language". Specifies the localization language of the metadata to be filled into snippet.localized. The field is filled with the default metadata if there is no localization in the specified language. The parameter value must be a language code included in the list returned by the i18nLanguages.list method (e.g. en_US, es_MX).
id
array[String]
Return videos with the given ids.
locale
String
maxHeight
Integer
maxResults
Integer
The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. *Note:* This parameter is supported for use in conjunction with the myRating and chart parameters, but it is not supported for use in conjunction with the id parameter.
maxWidth
Integer
Return the player with maximum height specified in
myRating
String
Return videos liked/disliked by the authenticated user. Does not support RateType.RATED_TYPE_NONE.
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
pageToken
String
The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. *Note:* This parameter is supported for use in conjunction with the myRating and chart parameters, but it is not supported for use in conjunction with the id parameter.
regionCode
String
Use a chart that is specific to the specified region
videoCategoryId
String
Use chart that is specific to the specified video category

Responses

Status: 200 - Successful response


youtube.videos.rate

Adds a like or dislike rating to a video or removes a rating from a video.


/youtube/v3/videos/rate

Usage and SDK Samples

curl -X POST\
\
\
"https://youtube.googleapis.com//youtube/v3/videos/rate?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&id=&rating="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VideosApi;

import java.io.File;
import java.util.*;

public class VideosApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        VideosApi apiInstance = new VideosApi();
        String id = id_example; // String | 
        String rating = rating_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            apiInstance.youtube.videos.rate(id, rating, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideosApi#youtube.videos.rate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VideosApi;

public class VideosApiExample {

    public static void main(String[] args) {
        VideosApi apiInstance = new VideosApi();
        String id = id_example; // String | 
        String rating = rating_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        try {
            apiInstance.youtube.videos.rate(id, rating, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideosApi#youtube.videos.rate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *id = id_example; // 
String *rating = rating_example; // 
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

VideosApi *apiInstance = [[VideosApi alloc] init];

[apiInstance youtube.videos.rateWith:id
    rating:rating
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.VideosApi()
var id = id_example; // {{String}} 
var rating = rating_example; // {{String}} 
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.youtube.videos.rate(id, rating, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.videos.rateExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new VideosApi();
            var id = id_example;  // String | 
            var rating = rating_example;  // String | 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 

            try
            {
                apiInstance.youtube.videos.rate(id, rating, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VideosApi.youtube.videos.rate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiVideosApi();
$id = id_example; // String | 
$rating = rating_example; // String | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").

try {
    $api_instance->youtube.videos.rate($id, $rating, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType);
} catch (Exception $e) {
    echo 'Exception when calling VideosApi->youtube.videos.rate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::VideosApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::VideosApi->new();
my $id = id_example; # String | 
my $rating = rating_example; # String | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").

eval { 
    $api_instance->youtube.videos.rate(id => $id, rating => $rating, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType);
};
if ($@) {
    warn "Exception when calling VideosApi->youtube.videos.rate: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.VideosApi()
id = id_example # String | 
rating = rating_example # String | 
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)

try: 
    api_instance.youtube/videos/rate(id, rating, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType)
except ApiException as e:
    print("Exception when calling VideosApi->youtube.videos.rate: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
id*
String
Required
rating*
String
Required

Responses

Status: 200 - Successful response


youtube.videos.reportAbuse

Report abuse for a video.


/youtube/v3/videos/reportAbuse

Usage and SDK Samples

curl -X POST\
\
\
-H "Content-Type: application/json"\
"https://youtube.googleapis.com//youtube/v3/videos/reportAbuse?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&onBehalfOfContentOwner="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VideosApi;

import java.io.File;
import java.util.*;

public class VideosApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        VideosApi apiInstance = new VideosApi();
        VideoAbuseReport body = ; // VideoAbuseReport | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            apiInstance.youtube.videos.reportAbuse(body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideosApi#youtube.videos.reportAbuse");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VideosApi;

public class VideosApiExample {

    public static void main(String[] args) {
        VideosApi apiInstance = new VideosApi();
        VideoAbuseReport body = ; // VideoAbuseReport | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            apiInstance.youtube.videos.reportAbuse(body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideosApi#youtube.videos.reportAbuse");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
VideoAbuseReport *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

VideosApi *apiInstance = [[VideosApi alloc] init];

[apiInstance youtube.videos.reportAbuseWith:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.VideosApi()
var opts = { 
  'body':  // {{VideoAbuseReport}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.youtube.videos.reportAbuse(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.videos.reportAbuseExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new VideosApi();
            var body = new VideoAbuseReport(); // VideoAbuseReport |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 

            try
            {
                apiInstance.youtube.videos.reportAbuse(body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VideosApi.youtube.videos.reportAbuse: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiVideosApi();
$body = ; // VideoAbuseReport | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

try {
    $api_instance->youtube.videos.reportAbuse($body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner);
} catch (Exception $e) {
    echo 'Exception when calling VideosApi->youtube.videos.reportAbuse: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::VideosApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::VideosApi->new();
my $body = WWW::SwaggerClient::Object::VideoAbuseReport->new(); # VideoAbuseReport | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

eval { 
    $api_instance->youtube.videos.reportAbuse(body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner);
};
if ($@) {
    warn "Exception when calling VideosApi->youtube.videos.reportAbuse: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.VideosApi()
body =  # VideoAbuseReport |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

try: 
    api_instance.youtube/videos/report_abuse(body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner)
except ApiException as e:
    print("Exception when calling VideosApi->youtube.videos.reportAbuse: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

Responses

Status: 200 - Successful response


youtube.videos.update

Updates an existing resource.


/youtube/v3/videos

Usage and SDK Samples

curl -X PUT\
\
\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://youtube.googleapis.com//youtube/v3/videos?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&part=&onBehalfOfContentOwner="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VideosApi;

import java.io.File;
import java.util.*;

public class VideosApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        VideosApi apiInstance = new VideosApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a video's privacy setting is contained in the status part. As such, if your request is updating a private video, and the request's part parameter value includes the status part, the video's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the video will revert to the default privacy setting. In addition, not all parts contain properties that can be set when inserting or updating a video. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.
        Video body = ; // Video | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            Video result = apiInstance.youtube.videos.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideosApi#youtube.videos.update");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VideosApi;

public class VideosApiExample {

    public static void main(String[] args) {
        VideosApi apiInstance = new VideosApi();
        array[String] part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a video's privacy setting is contained in the status part. As such, if your request is updating a private video, and the request's part parameter value includes the status part, the video's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the video will revert to the default privacy setting. In addition, not all parts contain properties that can be set when inserting or updating a video. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.
        Video body = ; // Video | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            Video result = apiInstance.youtube.videos.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VideosApi#youtube.videos.update");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[String] *part = ; // The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a video's privacy setting is contained in the status part. As such, if your request is updating a private video, and the request's part parameter value includes the status part, the video's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the video will revert to the default privacy setting. In addition, not all parts contain properties that can be set when inserting or updating a video. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.
Video *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

VideosApi *apiInstance = [[VideosApi alloc] init];

[apiInstance youtube.videos.updateWith:part
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
              completionHandler: ^(Video output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.VideosApi()
var part = ; // {{array[String]}} The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a video's privacy setting is contained in the status part. As such, if your request is updating a private video, and the request's part parameter value includes the status part, the video's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the video will revert to the default privacy setting. In addition, not all parts contain properties that can be set when inserting or updating a video. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.
var opts = { 
  'body':  // {{Video}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.youtube.videos.update(part, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.videos.updateExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new VideosApi();
            var part = new array[String](); // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a video's privacy setting is contained in the status part. As such, if your request is updating a private video, and the request's part parameter value includes the status part, the video's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the video will revert to the default privacy setting. In addition, not all parts contain properties that can be set when inserting or updating a video. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.
            var body = new Video(); // Video |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 

            try
            {
                Video result = apiInstance.youtube.videos.update(part, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VideosApi.youtube.videos.update: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiVideosApi();
$part = ; // array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a video's privacy setting is contained in the status part. As such, if your request is updating a private video, and the request's part parameter value includes the status part, the video's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the video will revert to the default privacy setting. In addition, not all parts contain properties that can be set when inserting or updating a video. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.
$body = ; // Video | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.

try {
    $result = $api_instance->youtube.videos.update($part, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VideosApi->youtube.videos.update: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::VideosApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::VideosApi->new();
my $part = []; # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a video's privacy setting is contained in the status part. As such, if your request is updating a private video, and the request's part parameter value includes the status part, the video's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the video will revert to the default privacy setting. In addition, not all parts contain properties that can be set when inserting or updating a video. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.
my $body = WWW::SwaggerClient::Object::Video->new(); # Video | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.

eval { 
    my $result = $api_instance->youtube.videos.update(part => $part, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VideosApi->youtube.videos.update: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.VideosApi()
part =  # array[String] | The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a video's privacy setting is contained in the status part. As such, if your request is updating a private video, and the request's part parameter value includes the status part, the video's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the video will revert to the default privacy setting. In addition, not all parts contain properties that can be set when inserting or updating a video. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.
body =  # Video |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

try: 
    api_response = api_instance.youtube/videos/update(part, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VideosApi->youtube.videos.update: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
part*
array[String]
The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a video's privacy setting is contained in the status part. As such, if your request is updating a private video, and the request's part parameter value includes the status part, the video's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the video will revert to the default privacy setting. In addition, not all parts contain properties that can be set when inserting or updating a video. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.
Required
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.

Responses

Status: 200 - Successful response


Watermarks

youtube.watermarks.set

Allows upload of watermark image and setting it for a channel.


/youtube/v3/watermarks/set

Usage and SDK Samples

curl -X POST\
\
\
-H "Content-Type: application/octet-stream,image/jpeg,image/png"\
"https://youtube.googleapis.com//youtube/v3/watermarks/set?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&channelId=&onBehalfOfContentOwner="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WatermarksApi;

import java.io.File;
import java.util.*;

public class WatermarksApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        WatermarksApi apiInstance = new WatermarksApi();
        String channelId = channelId_example; // String | 
        InvideoBranding body = ; // InvideoBranding | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            apiInstance.youtube.watermarks.set(channelId, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
        } catch (ApiException e) {
            System.err.println("Exception when calling WatermarksApi#youtube.watermarks.set");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WatermarksApi;

public class WatermarksApiExample {

    public static void main(String[] args) {
        WatermarksApi apiInstance = new WatermarksApi();
        String channelId = channelId_example; // String | 
        InvideoBranding body = ; // InvideoBranding | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            apiInstance.youtube.watermarks.set(channelId, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
        } catch (ApiException e) {
            System.err.println("Exception when calling WatermarksApi#youtube.watermarks.set");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *channelId = channelId_example; // 
InvideoBranding *body = ; //  (optional)
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

WatermarksApi *apiInstance = [[WatermarksApi alloc] init];

[apiInstance youtube.watermarks.setWith:channelId
    body:body
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.WatermarksApi()
var channelId = channelId_example; // {{String}} 
var opts = { 
  'body':  // {{InvideoBranding}} 
  '$.xgafv': $.xgafv_example // {{String}} V1 error format.
  'accessToken': accessToken_example // {{String}} OAuth access token.
  'alt': alt_example // {{String}} Data format for response.
  'callback': callback_example // {{String}} JSONP
  'fields': fields_example // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.youtube.watermarks.set(channelId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.watermarks.setExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new WatermarksApi();
            var channelId = channelId_example;  // String | 
            var body = new InvideoBranding(); // InvideoBranding |  (optional) 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 

            try
            {
                apiInstance.youtube.watermarks.set(channelId, body, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WatermarksApi.youtube.watermarks.set: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiWatermarksApi();
$channelId = channelId_example; // String | 
$body = ; // InvideoBranding | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

try {
    $api_instance->youtube.watermarks.set($channelId, $body, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner);
} catch (Exception $e) {
    echo 'Exception when calling WatermarksApi->youtube.watermarks.set: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WatermarksApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::WatermarksApi->new();
my $channelId = channelId_example; # String | 
my $body = WWW::SwaggerClient::Object::InvideoBranding->new(); # InvideoBranding | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

eval { 
    $api_instance->youtube.watermarks.set(channelId => $channelId, body => $body, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner);
};
if ($@) {
    warn "Exception when calling WatermarksApi->youtube.watermarks.set: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.WatermarksApi()
channelId = channelId_example # String | 
body =  # InvideoBranding |  (optional)
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

try: 
    api_instance.youtube/watermarks/set(channelId, body=body, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner)
except ApiException as e:
    print("Exception when calling WatermarksApi->youtube.watermarks.set: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
channelId*
String
Required
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

Responses

Status: 200 - Successful response


youtube.watermarks.unset

Allows removal of channel watermark.


/youtube/v3/watermarks/unset

Usage and SDK Samples

curl -X POST\
\
\
"https://youtube.googleapis.com//youtube/v3/watermarks/unset?$.xgafv=&access_token=&alt=&callback=&fields=&key=&oauth_token=&prettyPrint="aUser=&upload_protocol=&uploadType=&channelId=&onBehalfOfContentOwner="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WatermarksApi;

import java.io.File;
import java.util.*;

public class WatermarksApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: Oauth2
        OAuth Oauth2 = (OAuth) defaultClient.getAuthentication("Oauth2");
        Oauth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2c
        OAuth Oauth2c = (OAuth) defaultClient.getAuthentication("Oauth2c");
        Oauth2c.setAccessToken("YOUR ACCESS TOKEN");

        WatermarksApi apiInstance = new WatermarksApi();
        String channelId = channelId_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            apiInstance.youtube.watermarks.unset(channelId, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
        } catch (ApiException e) {
            System.err.println("Exception when calling WatermarksApi#youtube.watermarks.unset");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WatermarksApi;

public class WatermarksApiExample {

    public static void main(String[] args) {
        WatermarksApi apiInstance = new WatermarksApi();
        String channelId = channelId_example; // String | 
        String $.xgafv = $.xgafv_example; // String | V1 error format.
        String accessToken = accessToken_example; // String | OAuth access token.
        String alt = alt_example; // String | Data format for response.
        String callback = callback_example; // String | JSONP
        String fields = fields_example; // String | Selector specifying which fields to include in a partial response.
        String key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        String oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
        Boolean prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
        String quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
        String uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
        String uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
        String onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
        try {
            apiInstance.youtube.watermarks.unset(channelId, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
        } catch (ApiException e) {
            System.err.println("Exception when calling WatermarksApi#youtube.watermarks.unset");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2c)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *channelId = channelId_example; // 
String *$.xgafv = $.xgafv_example; // V1 error format. (optional)
String *accessToken = accessToken_example; // OAuth access token. (optional)
String *alt = alt_example; // Data format for response. (optional)
String *callback = callback_example; // JSONP (optional)
String *fields = fields_example; // Selector specifying which fields to include in a partial response. (optional)
String *key = key_example; // API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
String *oauthToken = oauthToken_example; // OAuth 2.0 token for the current user. (optional)
Boolean *prettyPrint = true; // Returns response with indentations and line breaks. (optional)
String *quotaUser = quotaUser_example; // Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
String *uploadProtocol = uploadProtocol_example; // Upload protocol for media (e.g. "raw", "multipart"). (optional)
String *uploadType = uploadType_example; // Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
String *onBehalfOfContentOwner = onBehalfOfContentOwner_example; // *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

WatermarksApi *apiInstance = [[WatermarksApi alloc] init];

[apiInstance youtube.watermarks.unsetWith:channelId
    $.xgafv:$.xgafv
    accessToken:accessToken
    alt:alt
    callback:callback
    fields:fields
    key:key
    oauthToken:oauthToken
    prettyPrint:prettyPrint
    quotaUser:quotaUser
    uploadProtocol:uploadProtocol
    uploadType:uploadType
    onBehalfOfContentOwner:onBehalfOfContentOwner
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var YouTubeDataApiV3 = require('you_tube_data_api_v3');
var defaultClient = YouTubeDataApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: Oauth2
var Oauth2 = defaultClient.authentications['Oauth2'];
Oauth2.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2c
var Oauth2c = defaultClient.authentications['Oauth2c'];
Oauth2c.accessToken = "YOUR ACCESS TOKEN"

var api = new YouTubeDataApiV3.WatermarksApi()
var channelId = channelId_example; // {{String}} 
var opts = { 
  '$.xgafv': $.xgafv_example, // {{String}} V1 error format.
  'accessToken': accessToken_example, // {{String}} OAuth access token.
  'alt': alt_example, // {{String}} Data format for response.
  'callback': callback_example, // {{String}} JSONP
  'fields': fields_example, // {{String}} Selector specifying which fields to include in a partial response.
  'key': key_example, // {{String}} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': oauthToken_example, // {{String}} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {{Boolean}} Returns response with indentations and line breaks.
  'quotaUser': quotaUser_example, // {{String}} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  'uploadProtocol': uploadProtocol_example, // {{String}} Upload protocol for media (e.g. "raw", "multipart").
  'uploadType': uploadType_example, // {{String}} Legacy upload protocol for media (e.g. "media", "multipart").
  'onBehalfOfContentOwner': onBehalfOfContentOwner_example // {{String}} *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.youtube.watermarks.unset(channelId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class youtube.watermarks.unsetExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: Oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2c
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new WatermarksApi();
            var channelId = channelId_example;  // String | 
            var $.xgafv = $.xgafv_example;  // String | V1 error format. (optional) 
            var accessToken = accessToken_example;  // String | OAuth access token. (optional) 
            var alt = alt_example;  // String | Data format for response. (optional) 
            var callback = callback_example;  // String | JSONP (optional) 
            var fields = fields_example;  // String | Selector specifying which fields to include in a partial response. (optional) 
            var key = key_example;  // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional) 
            var oauthToken = oauthToken_example;  // String | OAuth 2.0 token for the current user. (optional) 
            var prettyPrint = true;  // Boolean | Returns response with indentations and line breaks. (optional) 
            var quotaUser = quotaUser_example;  // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional) 
            var uploadProtocol = uploadProtocol_example;  // String | Upload protocol for media (e.g. "raw", "multipart"). (optional) 
            var uploadType = uploadType_example;  // String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional) 
            var onBehalfOfContentOwner = onBehalfOfContentOwner_example;  // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional) 

            try
            {
                apiInstance.youtube.watermarks.unset(channelId, $.xgafv, accessToken, alt, callback, fields, key, oauthToken, prettyPrint, quotaUser, uploadProtocol, uploadType, onBehalfOfContentOwner);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WatermarksApi.youtube.watermarks.unset: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2c
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiWatermarksApi();
$channelId = channelId_example; // String | 
$$.xgafv = $.xgafv_example; // String | V1 error format.
$accessToken = accessToken_example; // String | OAuth access token.
$alt = alt_example; // String | Data format for response.
$callback = callback_example; // String | JSONP
$fields = fields_example; // String | Selector specifying which fields to include in a partial response.
$key = key_example; // String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
$oauthToken = oauthToken_example; // String | OAuth 2.0 token for the current user.
$prettyPrint = true; // Boolean | Returns response with indentations and line breaks.
$quotaUser = quotaUser_example; // String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
$uploadProtocol = uploadProtocol_example; // String | Upload protocol for media (e.g. "raw", "multipart").
$uploadType = uploadType_example; // String | Legacy upload protocol for media (e.g. "media", "multipart").
$onBehalfOfContentOwner = onBehalfOfContentOwner_example; // String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

try {
    $api_instance->youtube.watermarks.unset($channelId, $$.xgafv, $accessToken, $alt, $callback, $fields, $key, $oauthToken, $prettyPrint, $quotaUser, $uploadProtocol, $uploadType, $onBehalfOfContentOwner);
} catch (Exception $e) {
    echo 'Exception when calling WatermarksApi->youtube.watermarks.unset: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WatermarksApi;

# Configure OAuth2 access token for authorization: Oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2c
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::WatermarksApi->new();
my $channelId = channelId_example; # String | 
my $$.xgafv = $.xgafv_example; # String | V1 error format.
my $accessToken = accessToken_example; # String | OAuth access token.
my $alt = alt_example; # String | Data format for response.
my $callback = callback_example; # String | JSONP
my $fields = fields_example; # String | Selector specifying which fields to include in a partial response.
my $key = key_example; # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
my $oauthToken = oauthToken_example; # String | OAuth 2.0 token for the current user.
my $prettyPrint = true; # Boolean | Returns response with indentations and line breaks.
my $quotaUser = quotaUser_example; # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
my $uploadProtocol = uploadProtocol_example; # String | Upload protocol for media (e.g. "raw", "multipart").
my $uploadType = uploadType_example; # String | Legacy upload protocol for media (e.g. "media", "multipart").
my $onBehalfOfContentOwner = onBehalfOfContentOwner_example; # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

eval { 
    $api_instance->youtube.watermarks.unset(channelId => $channelId, $.xgafv => $$.xgafv, accessToken => $accessToken, alt => $alt, callback => $callback, fields => $fields, key => $key, oauthToken => $oauthToken, prettyPrint => $prettyPrint, quotaUser => $quotaUser, uploadProtocol => $uploadProtocol, uploadType => $uploadType, onBehalfOfContentOwner => $onBehalfOfContentOwner);
};
if ($@) {
    warn "Exception when calling WatermarksApi->youtube.watermarks.unset: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2c
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.WatermarksApi()
channelId = channelId_example # String | 
$.xgafv = $.xgafv_example # String | V1 error format. (optional)
accessToken = accessToken_example # String | OAuth access token. (optional)
alt = alt_example # String | Data format for response. (optional)
callback = callback_example # String | JSONP (optional)
fields = fields_example # String | Selector specifying which fields to include in a partial response. (optional)
key = key_example # String | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. (optional)
oauthToken = oauthToken_example # String | OAuth 2.0 token for the current user. (optional)
prettyPrint = true # Boolean | Returns response with indentations and line breaks. (optional)
quotaUser = quotaUser_example # String | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. (optional)
uploadProtocol = uploadProtocol_example # String | Upload protocol for media (e.g. "raw", "multipart"). (optional)
uploadType = uploadType_example # String | Legacy upload protocol for media (e.g. "media", "multipart"). (optional)
onBehalfOfContentOwner = onBehalfOfContentOwner_example # String | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. (optional)

try: 
    api_instance.youtube/watermarks/unset(channelId, $.xgafv=$.xgafv, accessToken=accessToken, alt=alt, callback=callback, fields=fields, key=key, oauthToken=oauthToken, prettyPrint=prettyPrint, quotaUser=quotaUser, uploadProtocol=uploadProtocol, uploadType=uploadType, onBehalfOfContentOwner=onBehalfOfContentOwner)
except ApiException as e:
    print("Exception when calling WatermarksApi->youtube.watermarks.unset: %s\n" % e)

Parameters

Query parameters
Name Description
$.xgafv
String
V1 error format.
access_token
String
OAuth access token.
alt
String
Data format for response.
callback
String
JSONP
fields
String
Selector specifying which fields to include in a partial response.
key
String
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token
String
OAuth 2.0 token for the current user.
prettyPrint
Boolean
Returns response with indentations and line breaks.
quotaUser
String
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocol
String
Upload protocol for media (e.g. "raw", "multipart").
uploadType
String
Legacy upload protocol for media (e.g. "media", "multipart").
channelId*
String
Required
onBehalfOfContentOwner
String
*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

Responses

Status: 200 - Successful response